diff --git a/stacks/calibre-web-automated/compose.yaml b/stacks/calibre-web-automated/compose.yaml index 9f81c31..b3e93d9 100644 --- a/stacks/calibre-web-automated/compose.yaml +++ b/stacks/calibre-web-automated/compose.yaml @@ -25,7 +25,11 @@ services: - ${CWA_INGEST_DIR}:/cwa-book-ingest - ${CWA_LIBRARY_DIR}:/calibre-library healthcheck: - test: ["CMD-SHELL", "wget -q --spider http://localhost:${CWA_PORT:-8083} || exit 1"] + # CWA image ships curl (not wget). `-fsS` makes curl exit non-zero on + # 4xx/5xx or connection failure while staying quiet on success. The + # port substitution happens at compose-render time so custom CWA_PORT + # values still work. + test: ["CMD", "curl", "-fsS", "-o", "/dev/null", "http://localhost:${CWA_PORT:-8083}/"] interval: 30s timeout: 10s retries: 3