more reliable healthcheck

This commit is contained in:
brooke 2025-03-10 14:57:04 -04:00
parent d7921ca1b6
commit bd875e0801

View File

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