-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (49 loc) · 855 Bytes
/
docker-compose.yml
File metadata and controls
54 lines (49 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
version: "3"
services:
api:
build:
context: ./api
dockerfile: Dockerfile
container_name: api
ports:
- 3000:3000
env_file:
- ./api/.env
volumes:
- ./api:/api
networks:
- autodj
depends_on:
- db
application:
build:
context: ./application
dockerfile: Dockerfile
container_name: application
ports:
- 3001:3001
environment:
- NODE_ENV=development
- PORT=3001
volumes:
- ./application:/application
- /application/node_modules
networks:
- autodj
depends_on:
- api
db:
image: mongo
container_name: db
command: mongod --quiet
volumes:
- mongo-data:/data/db
ports:
- 27017:27017
networks:
- autodj
networks:
autodj:
driver: bridge
volumes:
mongo-data: