Skip to content

Commit

Permalink
🩺 Docker healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachid F committed May 31, 2024
1 parent a75a167 commit e11ea60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ services:
networks:
- backend
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "${BACKEND_PORT}"]
test: ["CMD", "nc", "-z", "0.0.0.0", "${BACKEND_PORT}"]
#test: ["CMD", "curl", "-f", "http://api:3000/health"] # Alternative healthcheck method
interval: 10s
timeout: 1s
Expand Down

0 comments on commit e11ea60

Please sign in to comment.