From ed2c05d27723cc48c3d7e42372dce867123e5b02 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 21 May 2026 11:24:42 +0800 Subject: [PATCH] Fix app healthcheck: use /proc/1/cmdline instead of pgrep --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 574472d8..528c2175 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,7 +18,7 @@ services: - tckdev_net restart: unless-stopped healthcheck: - test: ["CMD-SHELL", "pgrep -f php-fpm > /dev/null 2>&1 || exit 1"] + test: ["CMD-SHELL", "grep -q php-fpm /proc/1/cmdline || exit 1"] interval: 10s timeout: 5s retries: 3