Fix nginx healthcheck: use pid file, fix pgadmin healthcheck: use file-size check for busybox wget

This commit is contained in:
root
2026-05-21 11:32:32 +08:00
parent ed2c05d277
commit e6a2001840

View File

@@ -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