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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user