forked from FightPandemics/FightPandemics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
75 lines (70 loc) · 1.34 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
65
66
67
68
69
70
71
72
73
74
75
version: "3"
services:
mongo:
image: mongo
container_name: mongo
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
geo-service:
build: geo-service
container_name: geo-service
ports:
- "5000:5000"
volumes:
- ./geo-service:/app
networks:
- fp_network
backend-service:
build:
context: backend
dockerfile: Dockerfile.dev
args:
NODE_ENV: dev
container_name: backend-service
restart: always
environment:
MONGO_URI: mongo
GEO_SERVICE_URL: geo-service:5000
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