-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (44 loc) · 838 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (44 loc) · 838 Bytes
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
services:
db:
image: postgres:latest
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_DB=webdb
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=password
ports:
- "5432:5432"
redis:
image: redis:latest
ports:
- "6379:6379"
django:
build: .
volumes:
- .:/app
ports:
- "8000:8000"
environment:
- DEBUG=1
depends_on:
- db
- redis
celery:
build: .
command: celery -A web worker --loglevel=info
volumes:
- .:/app
depends_on:
- db
- redis
celery-beat:
build: .
command: celery -A web beat --loglevel=info --scheduler django_celery_beat.schedulers:DatabaseScheduler
volumes:
- .:/app
depends_on:
- db
- redis
volumes:
postgres_data: