-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·115 lines (108 loc) · 2.49 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
version: "3.4"
services:
py-api-srv:
build: py-srv/api
healthcheck:
test: "exit 0"
command: sh -c "/wait && python -m unittest && python app.py"
ports:
- 443
environment:
- WAIT_HOSTS=elasticsearch:9200
- WAIT_HOSTS_TIMEOUT=300
- WAIT_SLEEP_INTERVAL=30
- WAIT_HOST_CONNECT_TIMEOUT=30
depends_on:
- elasticsearch
- kibana
- redis
links:
- "elasticsearch:elasticsearch"
- "redis:redis"
py-web-srv:
build: py-srv/web
healthcheck:
test: "exit 0"
command: sh -c "/wait && python -m unittest && python app.py"
ports:
- 443:443
environment:
- WAIT_HOSTS=py-api-srv:443
- WAIT_HOSTS_TIMEOUT=300
- WAIT_SLEEP_INTERVAL=30
- WAIT_HOST_CONNECT_TIMEOUT=30
depends_on:
- py-api-srv
links:
- "py-api-srv:py-api-srv"
redis:
image: redis:latest
elasticsearch:
image: elasticsearch:7.12.0
healthcheck:
test: "exit 0"
interval: 1m30s
timeout: 30s
retries: 5
start_period: 30s
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
# volumes:
# - ./es/data:/usr/share/elasticsearch/data
ports:
- 9200:9200
kibana:
image: kibana:7.12.0
healthcheck:
test: "exit 0"
interval: 1m30s
timeout: 30s
retries: 5
start_period: 30s
environment:
- "ELASTICSEARCH_URL=http://elasticsearch:9200"
- "SERVER_NAME=127.0.0.1"
ports:
- 5601:5601
depends_on:
- elasticsearch
# py-api-test-srv:
# build:
# context: py-test-srv/api
# command: sh -c "/wait && python app.py"
# environment:
# - WAIT_HOSTS=py-api-srv:443
# - WAIT_HOSTS_TIMEOUT=300
# - WAIT_SLEEP_INTERVAL=30
# - WAIT_HOST_CONNECT_TIMEOUT=30
# depends_on:
# - py-api-srv
# links:
# - "py-api-srv:py-api-srv"
# py-web-test-srv:
# build:
# context: py-test-srv/web
# command: sh -c "/wait && python app.py"
# environment:
# - WAIT_HOSTS=py-web-srv:443, selenium:4444
# - WAIT_HOSTS_TIMEOUT=300
# - WAIT_SLEEP_INTERVAL=30
# - WAIT_HOST_CONNECT_TIMEOUT=30
# depends_on:
# - py-web-srv
# - selenium
# links:
# - "py-web-srv:py-web-srv"
# - "selenium:selenium"
#
# selenium:
# image: selenium/standalone-firefox
# hostname: selenium
# ports:
# - 4444:4444