forked from FightPandemics/FightPandemics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (60 loc) · 1.15 KB
/
docker-compose.yml
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
55
56
57
58
59
60
61
62
63
64
version: "3"
services:
mongo:
image: mongo
container_name: mongo
environment:
MONGO_INITDB_DATABASE: fightpandemics
restart: always
networks:
- fp_network
mongo-express:
image: mongo-express
container_name: mongo-express
restart: always
ports:
- "8081:8081"
networks:
- fp_network
depends_on:
- mongo
backend-service:
build:
context: backend
dockerfile: Dockerfile.dev
args:
NODE_ENV: dev
container_name: backend-service
restart: always
ports:
- "8000:8000"
- "9229:9229"
volumes:
- ./backend:/app
- /app/node_modules/
working_dir: /app
depends_on:
- mongo
networks:
- fp_network
client:
build:
context: client
dockerfile: Dockerfile.dev
restart: always
container_name: client
environment:
BACKEND_SERVICE_URL: http://backend-service:8000
ports:
- "3000:3000"
volumes:
- ./client:/app
- /app/node_modules/
working_dir: /app
stdin_open: true
tty: true
networks:
- fp_network
networks:
fp_network:
driver: bridge