komga: fix healthcheck — probe unauthenticated /actuator/health (was 401 on /api/v1/...)

The /api/v1 prefix is auth-gated → old HC got 401 → curl -f failed → container
reported unhealthy while serving fine. Diagnosed live on guest 9201.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-22 15:03:37 +02:00
parent 939864f2a6
commit 3faa5ae193
2 changed files with 15 additions and 1 deletions
+5 -1
View File
@@ -35,8 +35,12 @@ services:
resources:
limits:
memory: 512M
# HC override: komga's actuator lives at /actuator/health (unauthenticated, 200), NOT under the
# auth-gated /api/v1 API prefix — the old /api/v1/actuator/health returns 401 so `curl -f` failed
# (exit 22) and the container reported "unhealthy" despite serving fine. The gotson/komga image
# ships curl (verified), so curl -f on the unauthenticated endpoint is the correct probe.
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:25600/api/v1/actuator/health"]
test: ["CMD", "curl", "-f", "http://localhost:25600/actuator/health"]
interval: 30s
timeout: 5s
retries: 3