-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (40 loc) · 913 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
45
46
services:
web:
image: custom-django
build: .
ports:
- 8000:8000
volumes:
- ./:/app
- dev-static-data:/vol/web
command: >
sh -c "python manage.py migrate &&
python manage.py runserver 0.0.0.0:8000
celery -A atsuko_clone worker -l info"
depends_on:
- postgres-db
- celery
redis:
image: redis:latest
ports:
- 6379:6379
celery:
image: celery:latest
volumes:
- ./:/app
environment:
- CELERY_BROKER_URL=redis://127.0.0.1:6379/0
command: >
sh -c "celery -A atsuko_clone worker -l info"
depends_on:
- redis
postgres-db:
image: postgres:14
environment:
- POSTGRES_PASSWORD=benjamin is cool
- POSTGRES_USERNAME=benji
volumes:
- postgres_db_data:/var/lib/postgresql/data
volumes:
postgres_db_data:
dev-static-data: