From e6a20018401e3f7da5604a663bd74ca29b06f8af Mon Sep 17 00:00:00 2001 From: root Date: Thu, 21 May 2026 11:32:32 +0800 Subject: [PATCH] Fix nginx healthcheck: use pid file, fix pgadmin healthcheck: use file-size check for busybox wget --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 528c2175..bfe460a0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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