fix: use wget instead of curl for healthchecks in Alpine containers

Alpine images don't include curl. wget is available by default.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Thomas Reitz 2026-03-08 17:43:37 +01:00
parent 2059fa69d9
commit 5f567445be

View file

@ -269,7 +269,7 @@ services:
- "traefik.http.middlewares.api-ratelimit.ratelimit.burst=50" - "traefik.http.middlewares.api-ratelimit.ratelimit.burst=50"
- "traefik.http.routers.core-api.middlewares=api-ratelimit" - "traefik.http.routers.core-api.middlewares=api-ratelimit"
healthcheck: healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:3000/health || exit 1"] test: ["CMD-SHELL", "wget -qO- http://localhost:3000/health || exit 1"]
interval: 15s interval: 15s
timeout: 5s timeout: 5s
retries: 3 retries: 3
@ -296,7 +296,7 @@ services:
- "traefik.http.routers.frontend.priority=1" - "traefik.http.routers.frontend.priority=1"
- "traefik.http.services.frontend.loadbalancer.server.port=8080" - "traefik.http.services.frontend.loadbalancer.server.port=8080"
healthcheck: healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8080/ || exit 1"] test: ["CMD-SHELL", "wget -qO- http://localhost:8080/ || exit 1"]
interval: 30s interval: 30s
timeout: 5s timeout: 5s
retries: 3 retries: 3