fix(docker): use curl-compatible flags in healthcheck commands
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.
This commit is contained in:
@@ -43,7 +43,7 @@ services:
|
||||
# - <PATH_TO_YOUR_CADDYFILE>:/import/Caddyfile:ro
|
||||
# - <PATH_TO_YOUR_SITES_DIR>:/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
|
||||
|
||||
Reference in New Issue
Block a user