Add healthcheck configuration to docker-compose
Add healthcheck to ensure service availability
This commit is contained in:
1 parent
b707e4990c
commit
578c746771
1 file changed
+10
@@ -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
|
||||
Reference in new issue
Block a user