Fix app healthcheck: use /proc/1/cmdline instead of pgrep

This commit is contained in:
root
2026-05-21 11:24:42 +08:00
parent bed954bc35
commit ed2c05d277

View File

@@ -18,7 +18,7 @@ services:
- tckdev_net - tckdev_net
restart: unless-stopped restart: unless-stopped
healthcheck: 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 interval: 10s
timeout: 5s timeout: 5s
retries: 3 retries: 3