Skip to content

Commit

Permalink
feat(deploy): Utilize build-in healthcheck scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenjohnson committed Aug 20, 2024
1 parent a4e89af commit 2e419f1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions deploy/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,20 @@ services:
ELASTICSEARCH_HOST: elasticsearch
QUICKSTATEMENTS_PUBLIC_URL: https://${QUICKSTATEMENTS_PUBLIC_HOST}
healthcheck:
test: curl --silent --fail localhost/wiki/Main_Page
test: /healthcheck.sh
interval: 10s
start_period: 5m

wikibase-jobrunner:
image: wikibase/wikibase:3
command: /jobrunner-entrypoint.sh
depends_on:
wikibase:
condition: service_healthy
restart: unless-stopped
volumes_from:
- wikibase
environment:
IS_JOBRUNNER: true

mysql:
image: mariadb:10.11
Expand Down Expand Up @@ -78,7 +79,7 @@ services:
discovery.type: single-node
ES_JAVA_OPTS: -Xms512m -Xmx512m -Dlog4j2.formatMsgNoLookups=true
healthcheck:
test: curl --silent --fail localhost:9200
test: /healthcheck.sh
interval: 10s
start_period: 2m

Expand All @@ -99,7 +100,7 @@ services:
volumes:
- wdqs-data:/wdqs/data
healthcheck:
test: curl --silent --fail localhost:9999/bigdata/namespace/wdq/sparql
test: /healthcheck.sh
interval: 10s
start_period: 2m

Expand Down Expand Up @@ -138,7 +139,7 @@ services:
environment:
WDQS_HOST: wdqs-proxy
healthcheck:
test: curl --silent --fail localhost
test: /healthcheck.sh
interval: 10s
start_period: 2m

Expand All @@ -159,7 +160,7 @@ services:
QUICKSTATEMENTS_PUBLIC_URL: https://${QUICKSTATEMENTS_PUBLIC_HOST}
WIKIBASE_PUBLIC_URL: https://${WIKIBASE_PUBLIC_HOST}
healthcheck:
test: curl --silent --fail localhost
test: /healthcheck.sh
interval: 10s
start_period: 2m

Expand Down

0 comments on commit 2e419f1

Please sign in to comment.