From 2b0fd205fc56f8e28cd3c34c657a6b1313d6edd1 Mon Sep 17 00:00:00 2001 From: Rachid F Date: Fri, 31 May 2024 15:31:45 -0700 Subject: [PATCH] :stethoscope: Update Healthcheck --- docker-compose.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 097018f5e..dcb887b25 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -106,6 +106,7 @@ 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 +117,10 @@ services: - backend healthcheck: #test: ["CMD", "nc", "-z", "0.0.0.0", "${BACKEND_PORT}"] - test: curl --fail http://localhost || exit 1 # Alternative healthcheck method + test: ["CMD-SHELL", "curl", "-f", "http://localhost:3000/health"] # Alternative healthcheck method start_period: 60s interval: 10s - timeout: 5s + timeout: 1s retries: 50 redis: