Skip to content

Commit

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

0 comments on commit 8c00577

Please sign in to comment.