-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (45 loc) · 895 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
47
48
49
50
51
version: '3'
services:
db:
image: postgres:13
volumes:
- ./data/db:/var/lib/postgresql/data
env_file:
- ./weather_service/.env
ports:
- 5432:5432
rabbitmq:
image: rabbitmq
ports:
- 5672:5672
- 15672:15672
django:
build:
context: ./weather_service
command: sh -c "python3 manage.py migrate && python3 manage.py runserver 0.0.0.0:8000"
volumes:
- ./:/usr/src/
ports:
- 8000:8000
depends_on:
- db
celery:
build:
context: ./weather_service
command: celery -A weather_service worker
volumes:
- ./:/usr/src/
env_file:
- ./weather_service/.env
depends_on:
- db
- rabbitmq
flower:
image: mher/flower
command: celery flower
ports:
- 8888:8888
env_file:
- ./weather_service/.env
depends_on:
- rabbitmq