-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
61 lines (54 loc) · 968 Bytes
/
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
version: "3"
services:
frontend:
build:
context: ./frontend/
command: "npm run dev"
volumes:
- ./frontend:/frontend
restart: always
ports:
- "1235:1235"
networks:
- front-tier
- back-tier
backend:
build:
context: ./backend/
command: "python app.py --host=0.0.0.0"
volumes:
- ./backend:/backend
networks:
- back-tier
restart: always
mongo:
image: mongo
command: --serviceExecutor adaptive
restart: always
volumes:
- ./mongodb:/data/db
networks:
- back-tier
logging:
driver: none
redis:
image: 'redis'
volumes:
- ./redis:/var/lib/redis
networks:
- back-tier
nginx:
restart: always
build:
context: ./nginx/
volumes:
- ./nginx:/var/log/nginx/
ports:
- "80:80"
- "5000:5000"
networks:
- front-tier
- back-tier
networks:
front-tier:
back-tier: