@@ -48,9 +48,16 @@ services:
48
48
49
49
proxy :
50
50
image : georchestra/security-proxy:latest
51
+ healthcheck :
52
+ test : ["CMD-SHELL", "curl -s -f localhost:8080/_static/bootstrap_3.0.0/css/bootstrap-theme.min.css >/dev/null || exit 1"]
53
+ interval : 30s
54
+ timeout : 10s
55
+ retries : 10
51
56
depends_on :
52
- - ldap
53
- - database
57
+ ldap :
58
+ condition : service_healthy
59
+ database :
60
+ condition : service_healthy
54
61
volumes :
55
62
- ./config:/etc/georchestra
56
63
environment :
@@ -61,8 +68,14 @@ services:
61
68
62
69
cas :
63
70
image : georchestra/cas:latest
71
+ healthcheck :
72
+ test : ["CMD-SHELL", "curl -s -f localhost:8080/cas/login >/dev/null || exit 1"]
73
+ interval : 30s
74
+ timeout : 10s
75
+ retries : 10
64
76
depends_on :
65
- - ldap
77
+ ldap :
78
+ condition : service_healthy
66
79
volumes :
67
80
- ./config:/etc/georchestra
68
81
environment :
@@ -73,6 +86,11 @@ services:
73
86
74
87
header :
75
88
image : georchestra/header:latest
89
+ healthcheck :
90
+ test : ["CMD-SHELL", "curl -s -f localhost:8080/header/img/logo.png >/dev/null || exit 1"]
91
+ interval : 30s
92
+ timeout : 10s
93
+ retries : 10
76
94
volumes :
77
95
- ./config:/etc/georchestra
78
96
environment :
@@ -83,8 +101,16 @@ services:
83
101
84
102
geoserver :
85
103
image : georchestra/geoserver:latest
104
+ healthcheck :
105
+ test : ["CMD-SHELL", "curl -s -f localhost:8080/geoserver/gwc/service/wmts?SERVICE=WMTS&REQUEST=GetCapabilities >/dev/null || exit 1"]
106
+ interval : 30s
107
+ timeout : 10s
108
+ retries : 10
86
109
depends_on :
87
- - ldap
110
+ ldap :
111
+ condition : service_healthy
112
+ database :
113
+ condition : service_healthy
88
114
volumes :
89
115
- ./config:/etc/georchestra
90
116
- geoserver_datadir:/mnt/geoserver_datadir
@@ -99,9 +125,16 @@ services:
99
125
100
126
console :
101
127
image : georchestra/console:latest
128
+ healthcheck :
129
+ test : ["CMD-SHELL", "curl -s -f localhost:8080/console/account/new >/dev/null || exit 1"]
130
+ interval : 30s
131
+ timeout : 10s
132
+ retries : 10
102
133
depends_on :
103
- - ldap
104
- - database
134
+ ldap :
135
+ condition : service_healthy
136
+ database :
137
+ condition : service_healthy
105
138
volumes :
106
139
- ./config:/etc/georchestra
107
140
environment :
@@ -112,6 +145,20 @@ services:
112
145
113
146
geonetwork :
114
147
image : georchestra/geonetwork:latest
148
+ healthcheck :
149
+ test : ["CMD-SHELL", "curl -s -f localhost:8080/geonetwork/srv/eng/catalog.search >/dev/null || exit 1"]
150
+ interval : 30s
151
+ timeout : 10s
152
+ retries : 10
153
+ depends_on :
154
+ console :
155
+ condition : service_healthy
156
+ database :
157
+ condition : service_healthy
158
+ kibana :
159
+ condition : service_healthy
160
+ elasticsearch :
161
+ condition : service_healthy
115
162
depends_on :
116
163
- console
117
164
- database
@@ -133,6 +180,11 @@ services:
133
180
134
181
datahub :
135
182
image : geonetwork/geonetwork-ui-datahub:latest
183
+ healthcheck :
184
+ test : ["CMD-SHELL", "curl -s -f localhost:80/datahub/ >/dev/null || exit 1"]
185
+ interval : 30s
186
+ timeout : 10s
187
+ retries : 10
136
188
environment :
137
189
ASSETS_DIRECTORY_OVERRIDE : /etc/georchestra/datahub/assets
138
190
CONFIG_DIRECTORY_OVERRIDE : /etc/georchestra/datahub/conf
@@ -142,8 +194,14 @@ services:
142
194
143
195
analytics :
144
196
image : georchestra/analytics:latest
197
+ healthcheck :
198
+ test : ["CMD-SHELL", "curl -s -f localhost:8080/analytics/ >/dev/null || exit 1"]
199
+ interval : 30s
200
+ timeout : 10s
201
+ retries : 10
145
202
depends_on :
146
- - database
203
+ database :
204
+ condition : service_healthy
147
205
volumes :
148
206
- ./config:/etc/georchestra
149
207
environment :
@@ -154,8 +212,14 @@ services:
154
212
155
213
mapstore :
156
214
image : georchestra/mapstore:latest
215
+ healthcheck :
216
+ test : ["CMD-SHELL", "curl -s -f localhost:8080/mapstore/configs/config.json >/dev/null || exit 1"]
217
+ interval : 30s
218
+ timeout : 10s
219
+ retries : 10
157
220
depends_on :
158
- - database
221
+ database :
222
+ condition : service_healthy
159
223
volumes :
160
224
- ./config:/etc/georchestra
161
225
- mapstore_extensions:/mnt/mapstore_extensions
@@ -165,6 +229,11 @@ services:
165
229
postgis :
166
230
# used by datafeeder to ingest uploaded user datasets into
167
231
image : postgis/postgis:13-3.1-alpine
232
+ healthcheck :
233
+ test : ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
234
+ interval : 10s
235
+ timeout : 3s
236
+ retries : 3
168
237
environment :
169
238
- POSTGRES_DB=datafeeder
170
239
- POSTGRES_USER=georchestra
@@ -175,6 +244,16 @@ services:
175
244
176
245
datafeeder :
177
246
image : georchestra/datafeeder:latest
247
+ healthcheck :
248
+ test : ["CMD-SHELL", "curl -s -f localhost:8080/datafeeder >/dev/null || exit 1"]
249
+ interval : 30s
250
+ timeout : 10s
251
+ retries : 10
252
+ depends_on :
253
+ database :
254
+ condition : service_healthy
255
+ postgis :
256
+ condition : service_healthy
178
257
volumes :
179
258
- ./config:/etc/georchestra
180
259
- datafeeder_uploads:/tmp/datafeeder
@@ -183,16 +262,29 @@ services:
183
262
184
263
import :
185
264
image : georchestra/datafeeder-frontend:latest
265
+ healthcheck :
266
+ test : ["CMD-SHELL", "wget --no-verbose --tries=1 --spider localhost:80/ >/dev/null || exit 1"]
267
+ interval : 30s
268
+ timeout : 10s
269
+ retries : 10
186
270
volumes :
187
271
- ./config:/etc/georchestra
188
272
189
273
elasticsearch :
190
274
image : elasticsearch:7.9.0
275
+ healthcheck :
276
+ test : ["CMD-SHELL", "curl -s -f localhost:9200/_cat/health >/dev/null || exit 1"]
277
+ interval : 30s
278
+ timeout : 10s
279
+ retries : 10
191
280
environment :
192
281
discovery.type : single-node
193
282
194
283
kibana :
195
284
image : kibana:7.9.0
285
+ depends_on :
286
+ elasticsearch :
287
+ condition : service_healthy
196
288
environment :
197
289
ELASTICSEARCH_HOSTS : http://elasticsearch:9200
198
290
volumes :
0 commit comments