From ad48517b80a24cf670b38a4126b4c72dd51837f7 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 25 Feb 2026 17:45:35 +0000 Subject: [PATCH] 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 --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 39f0ce3..20c0c33 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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