Add healthcheck configuration to docker-compose

Add healthcheck to ensure service availability
This commit is contained in:
Lucas Rayan Guerra authored and GitHub committed 2026-07-10 16:19:00 -03:00
1 parent b707e4990c
commit 578c746771
1 file changed
+10
+10
View File
@@ -4,3 +4,13 @@ services:
ports:
- "${PORT:-3000}:80"
restart: unless-stopped
healthcheck:
test:
- CMD
- wget
- '-qO-'
- 'http://127.0.0.1:3000/'
interval: 30s
timeout: 10s
retries: 3
start_period: 10s