From 667ccd36d2796b0166a8bc492a7d68f2691e71b7 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sat, 24 Jan 2026 23:15:09 +0000 Subject: [PATCH] fix(docker): use curl-compatible flags in healthcheck commands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Alpine→Debian migration changed wget to curl but kept wget-specific flags (--no-verbose, --tries=1, --spider) which don't work with curl. Changed to: curl -fsS (fail on error, silent, show errors) Fixed in: - docker-compose.yml - docker-compose.e2e.yml - docker-compose.local.yml docker-compose.playwright.yml already had correct syntax. --- .docker/compose/docker-compose.e2e.yml | 2 +- .docker/compose/docker-compose.local.yml | 2 +- .docker/compose/docker-compose.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.docker/compose/docker-compose.e2e.yml b/.docker/compose/docker-compose.e2e.yml index 36a115f4..bea99b2a 100644 --- a/.docker/compose/docker-compose.e2e.yml +++ b/.docker/compose/docker-compose.e2e.yml @@ -35,7 +35,7 @@ services: # Use tmpfs for E2E test data - fresh on every run - e2e_data:/app/data healthcheck: - test: ["CMD", "curl", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/api/v1/health"] + test: ["CMD-SHELL", "curl -fsS http://localhost:8080/api/v1/health || exit 1"] interval: 5s timeout: 5s retries: 10 diff --git a/.docker/compose/docker-compose.local.yml b/.docker/compose/docker-compose.local.yml index 3ab08ef9..324613fc 100644 --- a/.docker/compose/docker-compose.local.yml +++ b/.docker/compose/docker-compose.local.yml @@ -43,7 +43,7 @@ services: # - :/import/Caddyfile:ro # - :/import/sites:ro # If your Caddyfile imports other files healthcheck: - test: ["CMD", "curl", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/api/v1/health"] + test: ["CMD-SHELL", "curl -fsS http://localhost:8080/api/v1/health || exit 1"] interval: 30s timeout: 10s retries: 3 diff --git a/.docker/compose/docker-compose.yml b/.docker/compose/docker-compose.yml index ec8fd0aa..3eb27084 100644 --- a/.docker/compose/docker-compose.yml +++ b/.docker/compose/docker-compose.yml @@ -53,7 +53,7 @@ services: # - ./my-existing-Caddyfile:/import/Caddyfile:ro # - ./sites:/import/sites:ro # If your Caddyfile imports other files healthcheck: - test: ["CMD", "curl", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/api/v1/health"] + test: ["CMD-SHELL", "curl -fsS http://localhost:8080/api/v1/health || exit 1"] interval: 30s timeout: 10s retries: 3