-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
65 lines (65 loc) · 1.41 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
version: '3.7'
volumes:
dbvolume:
services:
db:
image: postgres:9.6
env_file:
- .env
volumes:
- dbvolume:/var/lib/postgresql/data/
nginx:
image: nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./docker/nginx/ac_mediator.conf:/etc/nginx/conf.d/default.conf
- ./docker/nginx/ssl_certificates:/ssl
depends_on:
- web
- flower
#- redmon
redis:
image: redis
web:
build: .
env_file:
- .env
volumes:
- .:/code
- /static/
- ./services/services_conf.cfg:/code/services/services_conf.cfg
command: python manage.py runserver 0.0.0.0:8000
depends_on:
- db
- redis
celery:
build: .
env_file:
- .env
volumes:
- .:/code
- /static/
- ./services/services_conf.cfg:/code/services/services_conf.cfg
command: celery worker -A ac_mediator --concurrency=${CELERY_CONCURRENCY}
depends_on:
- redis
celery_beat:
build: .
env_file:
- .env
volumes:
- .:/code
- /static/
- ./services/services_conf.cfg:/code/services/services_conf.cfg
command: celery beat -A ac_mediator
depends_on:
- redis
flower: # Django app to monitor Celery status
build: ./docker/flower/
env_file:
- .env
command: flower --address=0.0.0.0 --port=5555 --broker=redis://redis --url_prefix=flower
depends_on:
- celery