Skip to content

Commit

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

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 @@ -77,10 +75,7 @@ services:
environment:
discovery.type: single-node
ES_JAVA_OPTS: -Xms512m -Xmx512m -Dlog4j2.formatMsgNoLookups=true
healthcheck:
test: curl --silent --fail localhost:9200
interval: 10s
start_period: 2m
healthcheck: /healthcheck.sh

wdqs:
image: wikibase/wdqs:1
Expand All @@ -98,10 +93,7 @@ services:
hard: 32768
volumes:
- wdqs-data:/wdqs/data
healthcheck:
test: curl --silent --fail localhost:9999/bigdata/namespace/wdq/sparql
interval: 10s
start_period: 2m
healthcheck: /healthcheck.sh

wdqs-updater:
image: wikibase/wdqs:1
Expand Down Expand Up @@ -137,10 +129,7 @@ services:
- "traefik.http.routers.wdqs-frontend.rule=Host(`${WDQS_FRONTEND_PUBLIC_HOST}`)"
environment:
WDQS_HOST: wdqs-proxy
healthcheck:
test: curl --silent --fail localhost
interval: 10s
start_period: 2m
healthcheck: /healthcheck.sh

quickstatements:
image: wikibase/quickstatements:1
Expand All @@ -158,10 +147,7 @@ services:
environment:
QUICKSTATEMENTS_PUBLIC_URL: https://${QUICKSTATEMENTS_PUBLIC_HOST}
WIKIBASE_PUBLIC_URL: https://${WIKIBASE_PUBLIC_HOST}
healthcheck:
test: curl --silent --fail localhost
interval: 10s
start_period: 2m
healthcheck: /healthcheck.sh

# --------------------------------------------------
# C. REVERSE PROXY AND SSL SERVICES
Expand Down

0 comments on commit 6d41f88

Please sign in to comment.