-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (45 loc) · 1.13 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
version: "3.3"
services:
django:
build: .
container_name: django
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py collectstatic --no-input && daphne -b 0.0.0.0 -p 8000 config.asgi:application"
volumes:
- .:/usr/src/app/
ports:
- "7000:8000"
env_file:
- .env
depends_on:
- postgres-db
- redis
celery:
build: .
command: celery -A config.celery_app worker
volumes:
- .:/usr/src/app
env_file:
- .env
depends_on:
- redis
celery-beat:
build: .
command: celery -A config.celery_app beat
volumes:
- .:/usr/src/app
env_file:
- .env
depends_on:
- django
- celery
- redis
postgres-db:
image: postgres:12.0-alpine
volumes:
- pgdata:/var/lib/postgresql/data/
env_file:
- ./.env.db
redis:
image: "redis:alpine"
volumes:
pgdata: