-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
60 lines (58 loc) · 1.35 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
version: '3.7'
services:
api-service:
build:
context: ./api/
dockerfile: Dockerfile
image: trobify-api
container_name: trobify-api-server
volumes:
- ./api/:/usr/src/app/
ports:
- 5000:5000
depends_on:
- db-service
networks:
- trobify-network
environment:
PORT: 5000
FLASK_DEBUG: 1
BD_CONN: mongodb://db-service:27017/
DB_NAME: db-trobify
db-service:
image: mongo
volumes:
- data-volume:/data/db
ports:
- "27017:27017"
networks:
- trobify-network
web-service:
build:
context: ./web/
dockerfile: Dockerfile
environment:
- CHOKIDAR_USEPOLLING=true
image: trobify-client
container_name: trobify-web-client
stdin_open: true
command: npm start
volumes:
- ./web/:/usr/app
- /usr/app/node_modules
depends_on:
- api-service
ports:
- "3000:3000"
networks:
- trobify-network
environment:
REACT_APP_API: http://localhost:5000/api/
networks:
trobify-network:
driver: bridge
volumes:
data-volume:
node_modules:
web-root:
driver: local