forked from zn8ae/TalentX
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·84 lines (76 loc) · 2.15 KB
/
docker-compose.yml
File metadata and controls
executable file
·84 lines (76 loc) · 2.15 KB
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
models:
image: tp33/django
external_links:
- mysql:db
volumes:
- ./models/:/app
# ports:
# - "8001:8000"
command: bash -c "pip install selenium && python manage.py makemigrations && python manage.py migrate && python manage.py loaddata db.json && mod_wsgi-express start-server --working-directory ./ --reload-on-changes ./models/wsgi.py"
exp:
image: tp33/django
links:
- models:models-api
- kafka
- es
volumes:
- ./exp/:/app
# ports:
# - "8002:8000"
command: bash -c "pip install requests && mod_wsgi-express start-server --working-directory ./ --reload-on-changes ./exp/wsgi.py"
web:
image: tp33/django
links:
- exp:exp-api
volumes:
- ./web/:/app
# ports:
# - "8003:8000"
#command: bash -c "pip install requests && mod_wsgi-express start-server --reload-on-changes ./web/wsgi.py"
command: bash -c "pip install requests && mod_wsgi-express start-server --working-directory ./ --reload-on-changes ./web/wsgi.py"
web2:
image: tp33/django
links:
- exp:exp-api
volumes:
- ./web/:/app
# ports:
# - "8004:8000"
#command: bash -c "pip install requests && mod_wsgi-express start-server --reload-on-changes ./web/wsgi.py"
command: bash -c "pip install requests && mod_wsgi-express start-server --working-directory ./ --reload-on-changes ./web/wsgi.py"
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
volumes:
- ./batch:/app/batch
command: bash -c "python /app/batch/main.py"
selenium:
image: selenium/standalone-firefox:3.3.1-cesium
#image: selenium/standalone-chrome
container_name: selenium
ports:
- "4444:4444"
volumes:
- ./selenium:/dev/shm
haproxy:
image: haproxy
container_name: my-running-haproxy
volumes:
- ./:/usr/local/etc/haproxy
ports:
- "80:80"