-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.prod.yaml
executable file
·127 lines (111 loc) · 2.18 KB
/
docker-compose.prod.yaml
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
version: "3.9"
services:
web:
build: .
command: >
sh -c "python manage.py migrate --settings=ChickoMenu.settings.production &&
python manage.py loaddata plan --settings=ChickoMenu.settings.production &&
gunicorn ChickoMenu.wsgi:application --bind 0.0.0.0:8000 --workers 4"
volumes:
- .:/app
ports:
- "8000:8000"
depends_on:
- db
- nginx
env_file:
- "./.env.db"
networks:
- main
- nginx_network
nginx:
container_name: nginx
image: nginx:latest
build:
context: ./webserver
dockerfile: Dockerfile
restart: unless-stopped
ports:
- 80:80
volumes:
- static_file:/usr/src/app/static
- media_file:/usr/src/app/media
depends_on:
- front
networks:
- nginx_network
db:
image: postgres:13
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- ./.env.db
networks:
- main
front:
build:
context: ./chicko-frontend/code
dockerfile: Dockerfile
ports:
- "4200:4200"
container_name: chicko-frontend
volumes:
- ./chicko-frontend/code:/usr/code
- /usr/code/node_modules
networks:
- main
- nginx_network
redis:
image: redis:latest
ports:
- "6379:6379"
networks:
- main
celery:
build: ./
command: celery -A ChickoMenu worker -l info
env_file:
- "./.env"
volumes:
- .:/app
networks:
- main
depends_on:
- redis
flower:
build: .
command: celery -A ChickoMenu --broker=redis://redis:6379 flower
volumes:
- .:/app
networks:
- main
- nginx_network
depends_on:
- redis
- celery
ports:
- "5555:5555"
chat:
build:
context: ./ChickoChat
dockerfile: Dockerfile
ports:
- "8080:8080"
mongo:
container_name: mongo
image: mongo:4.4
ports:
- "27017:27017"
command: mongod
networks:
main:
external: true
nginx_network:
external: true
volumes:
postgres_data:
external: true
static_file:
external: true
media_file:
external: true