Fix nginx healthcheck: use pid file, fix pgadmin healthcheck: use file-size check for busybox wget
This commit is contained in:
@@ -69,7 +69,7 @@ services:
|
||||
networks:
|
||||
- tckdev_net
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -q http://localhost/ -O /dev/null || exit 1"]
|
||||
test: ["CMD-SHELL", "test -f /var/run/nginx.pid"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
@@ -97,7 +97,7 @@ services:
|
||||
- tckdev_net
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -q http://localhost:80/login -O /dev/null || exit 1"]
|
||||
test: ["CMD-SHELL", "wget http://localhost:80/login -O /tmp/hc 2>/dev/null; test -s /tmp/hc"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
Reference in New Issue
Block a user