Skip to content

Commit ccd31f5

Browse files
committed
feat(deploy): Utilize build-in healthcheck scripts
1 parent 9014541 commit ccd31f5

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

deploy/docker-compose.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,20 @@ services:
3232
ELASTICSEARCH_HOST: elasticsearch
3333
QUICKSTATEMENTS_PUBLIC_URL: https://${QUICKSTATEMENTS_PUBLIC_HOST}
3434
healthcheck:
35-
test: curl --silent --fail localhost/wiki/Main_Page
35+
test: /healthcheck.sh
3636
interval: 10s
3737
start_period: 5m
3838

3939
wikibase-jobrunner:
4040
image: wikibase/wikibase:3
41-
command: /jobrunner-entrypoint.sh
4241
depends_on:
4342
wikibase:
4443
condition: service_healthy
4544
restart: unless-stopped
4645
volumes_from:
4746
- wikibase
47+
environment:
48+
IS_JOBRUNNER: true
4849

4950
mysql:
5051
image: mariadb:10.11
@@ -78,7 +79,7 @@ services:
7879
discovery.type: single-node
7980
ES_JAVA_OPTS: -Xms512m -Xmx512m -Dlog4j2.formatMsgNoLookups=true
8081
healthcheck:
81-
test: curl --silent --fail localhost:9200
82+
test: /healthcheck.sh
8283
interval: 10s
8384
start_period: 2m
8485

@@ -99,7 +100,7 @@ services:
99100
volumes:
100101
- wdqs-data:/wdqs/data
101102
healthcheck:
102-
test: curl --silent --fail localhost:9999/bigdata/namespace/wdq/sparql
103+
test: /healthcheck.sh
103104
interval: 10s
104105
start_period: 2m
105106

@@ -138,7 +139,7 @@ services:
138139
environment:
139140
WDQS_HOST: wdqs-proxy
140141
healthcheck:
141-
test: curl --silent --fail localhost
142+
test: /healthcheck.sh
142143
interval: 10s
143144
start_period: 2m
144145

@@ -159,7 +160,7 @@ services:
159160
QUICKSTATEMENTS_PUBLIC_URL: https://${QUICKSTATEMENTS_PUBLIC_HOST}
160161
WIKIBASE_PUBLIC_URL: https://${WIKIBASE_PUBLIC_HOST}
161162
healthcheck:
162-
test: curl --silent --fail localhost
163+
test: /healthcheck.sh
163164
interval: 10s
164165
start_period: 2m
165166

0 commit comments

Comments
 (0)