rallly: fix healthcheck (image has no wget → node http check)

The wget healthcheck always failed (exit 127, no wget in image) → container
unhealthy → Traefik refused to route it. Pre-existing, never caught because the
3.12.1 image pin didn't exist.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-29 10:54:49 +02:00
parent 47f23bf1e3
commit 32c730f749
+4 -1
View File
@@ -42,8 +42,11 @@ services:
resources:
limits:
memory: 256M
# The rallly image has NO wget/curl — the old wget healthcheck always failed (exit 127), marking the
# container unhealthy, which made Traefik refuse to publish a route to it. Use Node (always present).
# rallly's "/" returns 307 → /login, so accept any status < 500.
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3000"]
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000',r=>process.exit(r.statusCode<500?0:1)).on('error',()=>process.exit(1))"]
interval: 30s
timeout: 5s
retries: 3