-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
97 lines (89 loc) · 1.83 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: "3.9"
services:
redis:
image: "redis:alpine"
networks:
- brokernet
db:
image: mysql:8.0.20
restart: always
ports:
- "3325:3306"
expose:
- 3306
command: '--init-file /data/application/init.sql --default-authentication-plugin=mysql_native_password'
volumes:
- ./scripts/mysql.sql:/data/application/init.sql
env_file:
- ./.docker.env
networks:
- backnet
backend:
build:
context: .
dockerfile: docker/backend/Dockerfile
restart: always
ports:
- "5000:5000"
expose:
- 5000
networks:
- backnet
- frontnet
- brokernet
command: gunicorn --worker-class eventlet -w 1 --bind 0.0.0.0:5000 src.app.wsgi:app
volumes:
- ./src:/usr/src/app/src
env_file:
- ./.docker.env
depends_on:
- db
- redis
worker:
build:
context: .
dockerfile: docker/worker/Dockerfile
restart: always
networks:
- backnet
- frontnet
- brokernet
command: celery -A src.app.celery_app.celery_app --broker=redis://redis:6379 worker --loglevel=info --concurrency=1
env_file:
- ./.docker.env
depends_on:
- db
- redis
flower:
build:
context: .
dockerfile: docker/worker/Dockerfile
restart: always
ports:
- "5555:5555"
expose:
- 5555
networks:
- backnet
- frontnet
- brokernet
command: celery -A src.app.celery_app.celery_app --broker=redis://redis:6379 flower --port=5555
env_file:
- ./.docker.env
depends_on:
- redis
proxy:
build:
context: .
dockerfile: docker/proxy/Dockerfile
restart: always
ports:
- 80:80
depends_on:
- backend
networks:
- frontnet
networks:
backnet:
frontnet:
brokernet: