diff --git a/backend/services/docker-compose.yml b/backend/services/docker-compose.yml index cd170e6c..7d82a27a 100644 --- a/backend/services/docker-compose.yml +++ b/backend/services/docker-compose.yml @@ -198,7 +198,7 @@ services: postgres: condition: service_healthy healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:3002/health"] + test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3002/health"] interval: 30s timeout: 3s retries: 3 @@ -345,7 +345,7 @@ services: kafka: condition: service_started healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:3006/api/v1/health"] + test: ["CMD", "node", "-e", "require('http').get('http://localhost:3006/api/v1/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"] interval: 30s timeout: 3s retries: 3