-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.debug.yml
67 lines (60 loc) · 1.61 KB
/
docker-compose.debug.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
# no load balancers for debug console! less messy to read logs
models: # PORT 8002
image: tp33/django
external_links:
- mysql:db
volumes:
- ./models/:/app
ports:
- "8002:8000"
command: bash -c "pip install -r requirements.txt python manage.py makemigrations && python manage.py migrate && python manage.py loaddata db.json && python manage.py runserver 0.0.0.0:8000"
container_name: models
exp: # PORT 8001
image: tp33/django
links:
- models:models-api
- kafka:kafka
- es:es
volumes:
- ./exp/:/app
ports:
- "8001:8000"
command: bash -c "pip install -r requirements.txt && python manage.py runserver 0.0.0.0:8000"
container_name: exp
web: # PORT 8000
image: tp33/django
links:
- exp:exp-api
volumes:
- ./web/:/app
ports:
- "8000:8000"
command: bash -c "pip install -r requirements.txt && python manage.py collectstatic --noinput && mod_wsgi-express start-server --reload-on-changes ./web/wsgi.py"
container_name: web
kafka:
image: spotify/kafka
container_name: kafka
environment:
ADVERTISED_HOST: kafka
ADVERTISED_PORT: 9092
hostname: kafka
es:
image: elasticsearch:2.0
container_name: es
ports:
- "9200:9200"
batch:
image: tp33/django
container_name: batch
links:
- kafka:kafka
- es:es
command: bash -c "sleep 30 && echo 'kafka queueing' && python search.py"
volumes:
- ./batch/:/app
# Integration/end-to-end testing
selenium:
image: selenium/standalone-chrome:2.48.2
container_name: selenium
ports:
- "5900:5900"