-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.dev.yml
89 lines (84 loc) · 1.8 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: '3.3'
services:
db:
build:
context: .
dockerfile: Dockerfile_dev_pg
volumes:
- metadata2:/var/lib/postgresql/data
networks:
- ddw_net
spotlights:
build:
context: .
dockerfile: Dockerfile_spotlights_dev
expose:
- "8000"
# Replace below path with the path to your ddw-external-api repo
# e.g export SPOTLIGHTS_REPO_PATH=/path/to/ddw-external-api
volumes:
- "${SPOTLIGHTS_REPO_PATH}:/src/ddw-external-api"
ports:
- "8000:8000"
depends_on:
- db
networks:
- ddw_net
web:
build:
context: .
dockerfile: Dockerfile
volumes:
- ".:/src"
expose:
- "80"
depends_on:
- db
environment:
- FTSUSER
- FTSPASS
- DJANGO_DEV
- DJANGO_SECRET_KEY
- GITHUB_TOKEN
- CELERY_BROKER_URL=amqp://admin:ddw_analyst_ui@rabbitmq:5672/myvhost
- API_BASE_URL
- S3_KEY
- S3_SECRET
command: bash -c "export DJANGO_DEV='True' && python manage.py runserver 0.0.0.0:80"
ports:
- "80:80"
networks:
- ddw_net
rabbitmq:
image: rabbitmq:latest
ports:
- 4369:4369
- 5671:5671
- 5672:5672
- 15672:15672
restart: always
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=ddw_analyst_ui
- RABBITMQ_DEFAULT_VHOST=myvhost
networks:
- ddw_net
celery:
image: ddw-analyst-ui_web:latest
command: celery -A ddw_analyst_ui worker -l info
depends_on:
- web
- rabbitmq
environment:
- CELERY_BROKER_URL=amqp://admin:ddw_analyst_ui@rabbitmq:5672/myvhost
networks:
- ddw_net
volumes:
metadata2:
external: true
networks:
ddw_net:
ipam:
driver: default
config:
- subnet: 172.22.0.0/16