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:
+1
-1
@@ -111,7 +111,7 @@ services:
|
|||||||
- --log-file=stdout
|
- --log-file=stdout
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
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
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|||||||
Reference in New Issue
Block a user