-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (59 loc) · 1.21 KB
/
docker-compose.yml
File metadata and controls
66 lines (59 loc) · 1.21 KB
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
version: '3.3'
services:
postgres:
image: postgres
restart: always
env_file: .env
volumes:
- db-data:/var/lib/postgresql/data
redis:
image: redis:5-alpine
restart: always
volumes:
- redis-data:/data
web:
image: web
restart: always
container_name: web
build:
context: src/
ports:
- 80:8000
command: gunicorn --workers 2 -b 0.0.0.0:8000 pan_publisher.main:application
env_file: .env
depends_on:
- redis
- postgres
celery:
image: web
restart: always
command: celery -A pan_publisher.api.background --concurrency=1 worker --loglevel=info
env_file: .env
depends_on:
- web
- redis
celery-beat:
image: web
restart: always
command: celery -A pan_publisher.api.background beat --loglevel=info
env_file: .env
depends_on:
- web
- redis
monitor:
image: web
restart: always
ports:
- 5555:5555
env_file: .env
command: flower -A pan_publisher.api.background --port=5555 --broker=redis://redis:6379/0
depends_on:
- web
- redis
- celery
- celery-beat
volumes:
db-data:
driver: local
redis-data:
driver: local