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