forked from SiliconWildCat/SiliconWildCat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (44 loc) · 946 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
version: '3.5'
services:
frontend:
build:
context: ./frontend
ports:
- "3000:3000"
container_name: frontend
stdin_open: true
restart: always
networks:
- app_tier
volumes:
- ./frontend:/usr/src/app/frontend
- /usr/src/app/frontend/node_modules
backend:
build:
context: ./backend
shm_size: '16gb'
ports:
- "5000:5000"
container_name: backend
restart: always
networks:
- app_tier
volumes:
- ./backend/web:/app
command: gunicorn -w 1 -b 0.0.0.0:5000 run:app
nginx:
image: nginx:latest
ports:
- "80:80"
- "8000:8000"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- frontend
- backend
networks:
- app_tier
restart: "on-failure"
networks: # 네트워크 이름
app_tier:
driver: bridge # 컨테이너를 bridge로 연결