-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.dev.yml
72 lines (70 loc) · 1.22 KB
/
docker-compose.dev.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '3.8'
services:
redis:
image: "redis:7.2-alpine"
volumes:
- "redis:/data"
migration:
build: .
depends_on:
- db
command: python manage.py migrate --noinput
volumes:
- ./:/usr/src/app/
env_file:
- ./.env
web:
build: .
depends_on:
- db
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./:/usr/src/app/
ports:
- '8000:8000'
env_file:
- ./.env
beat:
build: .
depends_on:
- redis
- db
- migration
command: python -m celery -A paList beat
volumes:
- ./:/usr/src/app/
env_file:
- ./.env
worker:
build: .
depends_on:
- redis
- db
- migration
command: python -m celery -A paList worker
volumes:
- ./:/usr/src/app/
env_file:
- ./.env
flower:
build: .
depends_on:
- redis
- db
- migration
command: python -m celery -A paList flower
volumes:
- ./:/usr/src/app/
ports:
- "5555:5555"
env_file:
- ./.env
db:
image: postgres:13.0-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- ./.env.db
volumes:
postgres_data:
redis: {}