-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (43 loc) · 923 Bytes
/
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
version: '3.6'
services:
db:
image: "postgres:10-alpine"
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: bottomsecret
volumes:
- postgres_data:/var/lib/postgresql/data/
redis:
image: "redis:4-alpine"
volumes:
- redis_data:/data
ports:
- "6379:6379"
worker:
build: .
command: celery worker --app django_rocket --loglevel info --logfile celery-worker.log
volumes:
- .:/code
depends_on:
- redis
schedule:
build: .
command: celery beat --app django_rocket --loglevel info --logfile celery-beat.log
volumes:
- .:/code
depends_on:
- redis
web:
build: .
command: bash -c "python manage.py migrate --noinput && python manage.py runserver 0.0.0.0:8000"
volumes:
- .:/code
ports:
- "8000:8000"
depends_on:
- db
- redis
volumes:
postgres_data:
redis_data: