-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
executable file
·51 lines (47 loc) · 1 KB
/
docker-compose.yaml
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
version: "3.9"
services:
web:
build: .
command: >
sh -c "python manage.py migrate --settings=ChickoMenu.settings.development &&
python manage.py loaddata plan --settings=ChickoMenu.settings.development &&
python manage.py runserver 0.0.0.0:8000 --settings=ChickoMenu.settings.development"
volumes:
- .:/code
ports:
- 8000:8000
depends_on:
- db
env_file:
- "./.env.db"
db:
image: postgres:13
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- ./.env.db
redis:
image: redis:latest
ports:
- "6379:6379"
celery:
build: ./
command: celery -A ChickoMenu worker -l info
env_file:
- "./.env"
volumes:
- .:/code
depends_on:
- redis
flower:
build: .
command: celery -A ChickoMenu --broker=redis://redis:6379 flower
volumes:
- .:/code
depends_on:
- redis
- celery
ports:
- "5555:5555"
volumes:
postgres_data: