diff --git a/docker-compose.yml b/docker-compose.yml index 2c39567c9..097018f5e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -106,7 +106,6 @@ services: MAILCHIMP_MARKETINGAUTOMATION_CLOUD_CLIENT_SECRET: ${MAILCHIMP_MARKETINGAUTOMATION_CLOUD_CLIENT_SECRET} PODIUM_MARKETINGAUTOMATION_CLOUD_CLIENT_ID: ${PODIUM_MARKETINGAUTOMATION_CLOUD_CLIENT_ID} PODIUM_MARKETINGAUTOMATION_CLOUD_CLIENT_SECRET: ${PODIUM_MARKETINGAUTOMATION_CLOUD_CLIENT_SECRET} - restart: unless-stopped ports: - 3000:3000 @@ -116,10 +115,11 @@ services: networks: - backend healthcheck: - test: ["CMD", "nc", "-z", "0.0.0.0", "${BACKEND_PORT}"] - #test: ["CMD", "curl", "-f", "http://api:3000/health"] # Alternative healthcheck method + #test: ["CMD", "nc", "-z", "0.0.0.0", "${BACKEND_PORT}"] + test: curl --fail http://localhost || exit 1 # Alternative healthcheck method + start_period: 60s interval: 10s - timeout: 1s + timeout: 5s retries: 50 redis: