Fix coturn healthcheck: use PID file instead of turnutils_stunclient

turnutils_stunclient is not available in coturn/coturn:latest (v4.8.0),
causing the healthcheck to always fail and preventing the asterisk
container from starting. Switch to checking the PID file that coturn
creates on successful startup.

https://claude.ai/code/session_01KWVtEt9MmZdywcu7WmgchX
This commit is contained in:
Claude
2026-02-25 17:45:35 +00:00
parent e1dd727521
commit ad48517b80
+1 -1
View File
@@ -111,7 +111,7 @@ services:
- --log-file=stdout
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "turnutils_stunclient -p ${TURN_PORT:-3478} 127.0.0.1 >/dev/null 2>&1"]
test: ["CMD-SHELL", "test -f /var/run/turnserver.pid && kill -0 $(cat /var/run/turnserver.pid)"]
interval: 10s
timeout: 5s
retries: 3