-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
66 lines (61 loc) · 1.51 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
version: '3.8'
services:
db:
restart: always
image: "postgres:11"
environment:
- "POSTGRES_DB=citus"
- "POSTGRES_USER=citus"
- "POSTGRES_PASSWORD=citus"
volumes:
- ./postgres_data:/var/lib/postgresql/data/
web:
build: ./backend
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./backend/:/usr/src/backend/
ports:
- 8000:8000
depends_on:
- db
- redis
redis:
container_name: redis
image: "redis"
ports:
- 6379:6379
celery:
container_name: celery-default2
restart: always
build: ./backend
command: celery -A anudesh_backend.celery worker -Q default --concurrency=2 --loglevel=info
volumes:
- ./backend/:/usr/src/backend/
depends_on:
- db
- redis
- web
# This is the additional queue which contains the low-priority celery tasks. We can adjust the concurrency and workers alloted to this container.
celery2:
container_name: celery-low-priority2
restart: always
build: ./backend
command: celery -A anudesh_backend.celery worker -Q functions --concurrency=2 --loglevel=info
volumes:
- ./backend/:/usr/src/backend/
depends_on:
- db
- redis
- web
# Celery beats - for scheduling daily e-mails
celery-beat:
build: ./backend
command: celery -A anudesh_backend.celery beat --loglevel=info
volumes:
- ./backend/:/usr/src/backend
depends_on:
- db
- redis
- web
volumes:
postgres_data: