-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose-local.yml
More file actions
65 lines (60 loc) · 1.52 KB
/
Copy pathdocker-compose-local.yml
File metadata and controls
65 lines (60 loc) · 1.52 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
version: '3.8'
services:
db:
restart: always
image: "postgres:11"
environment:
- "POSTGRES_HOST_AUTH_METHOD=trust"
- "POSTGRES_DB=main"
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-default
# restart: always
# build: ./backend
# command: celery -A shoonya_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-priority
# restart: always
# build: ./backend
# command: celery -A shoonya_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 shoonya_backend.celery beat --loglevel=info
# volumes:
# - ./backend/:/usr/src/backend
# depends_on:
# - db
# - redis
# - web
volumes:
postgres_data: