From 8c00577e5d600da80c2adc07981e97d045bd07ab Mon Sep 17 00:00:00 2001 From: Rachid F Date: Fri, 31 May 2024 15:24:31 -0700 Subject: [PATCH] :stethoscope: Updated healthcheck --- docker-compose.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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: