From a5e6e18015d7c7b33b176e127817c4a251b5d300 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 23 Feb 2026 20:04:38 +0000 Subject: [PATCH] Use turnutils_stunclient for coturn healthcheck The coturn/coturn Alpine image doesn't include ss or netstat. Use turnutils_stunclient (included in the coturn image) which actually verifies the STUN server is responding, not just that a port is open. Also add start_period to avoid false failures during startup. https://claude.ai/code/session_01Vm6NLaQuzM4VosAotqS1q8 --- docker-compose.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 233c64a..c731367 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -101,10 +101,11 @@ services: exec turnserver $$ARGS restart: unless-stopped healthcheck: - test: ["CMD-SHELL", "netstat -uln | grep -q ':3478'"] - interval: 30s + test: ["CMD", "turnutils_stunclient", "127.0.0.1"] + interval: 10s timeout: 5s retries: 3 + start_period: 10s volumes: asterisk-config: