use statping health endpoint

This commit is contained in:
brooke 2025-03-03 22:21:55 -05:00
parent 2f5017e3ee
commit d7921ca1b6

View File

@ -24,11 +24,10 @@ services:
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}" - "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "coop-cloud.${STACK_NAME}.version=0.1.1+v0.90.78" - "coop-cloud.${STACK_NAME}.version=0.1.1+v0.90.78"
healthcheck: healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:8080/ || exit 1 test: ["CMD", "curl", "-s", "http://localhost:8080/health", "|", "jq", "-r", "-e", ".online==true"]
interval: 120s interval: 60s
retries: 5
start_period: 30s
timeout: 10s timeout: 10s
retries: 3
networks: networks:
proxy: proxy: