Skip to content

Commit

Permalink
🩺 Update Healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachid F committed May 31, 2024
1 parent 8c00577 commit 2b0fd20
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 2b0fd20

Please sign in to comment.