-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
77 lines (70 loc) · 1.32 KB
/
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
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
73
74
75
76
77
version: '3.8'
networks:
default:
driver: bridge
driver_opts:
com.docker.network.driver.mtu: 1400
services:
db:
image: postgres:13
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: postgres
POSTGRES_USER: root
POSTGRES_PASSWORD: root
restart: always
networks:
- default
redis:
image: redis:latest
volumes:
- redis_data:/data
ports:
- "6379:6379"
restart: always
networks:
- default
backend:
build: .
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./:/usr/src/app
- staticfiles:/usr/src/app/static
ports:
- "8000:8000"
restart: always
depends_on:
- db
- redis
networks:
- default
celery_worker:
build: .
command: celery -A project worker -B -l info
volumes:
- ./:/usr/src/app
depends_on:
- db
- redis
restart: always
networks:
- default
celery_flower:
build: .
command: celery -A project flower --url_prefix=flower
volumes:
- ./:/usr/src/app
- staticfiles:/usr/src/app/static
ports:
- "5555:5555"
depends_on:
- db
- redis
restart: always
networks:
- default
volumes:
postgres_data:
redis_data:
staticfiles: