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:
|
networks:
|
||||||
- tckdev_net
|
- tckdev_net
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "wget -q http://localhost/ -O /dev/null || exit 1"]
|
test: ["CMD-SHELL", "test -f /var/run/nginx.pid"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
@@ -97,7 +97,7 @@ services:
|
|||||||
- tckdev_net
|
- tckdev_net
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
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
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|||||||
Reference in New Issue
Block a user