fix: drop docker healthcheck so Traefik routes immediately
All checks were successful
Deploy / deploy (push) Successful in 20s

Traefik docker provider skips routing for containers whose Docker HEALTHCHECK
reports unhealthy. Our /healthz returns 503 if LAPI is unreachable, which left
the container stuck unhealthy and the router never appeared — every request
returned 404 from Traefik.

/healthz still exists for manual probes; Kuma probes via Traefik also still
work.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-06-16 23:51:49 +02:00
parent 9c8b4ca0cc
commit a5971403b2

View File

@@ -15,11 +15,6 @@ services:
- LAPI_MACHINE_ID=${LAPI_MACHINE_ID}
- LAPI_MACHINE_PASSWORD=${LAPI_MACHINE_PASSWORD}
- TRUSTED_PROXY_HOPS=1
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request,sys; sys.exit(0 if urllib.request.urlopen('http://127.0.0.1:8000/healthz', timeout=3).status==200 else 1)"]
interval: 60s
timeout: 5s
retries: 3
labels:
- "traefik.enable=true"
- "traefik.http.routers.crowdsec-admin.rule=Host(`crowdsec.domverse-berlin.eu`)"