Fix coturn healthcheck: use netstat instead of ss
The coturn/coturn Docker image is Alpine-based and doesn't include iproute2 (which provides ss). This caused the healthcheck to fail immediately, marking coturn as unhealthy and preventing the asterisk container from starting due to its service_healthy dependency. Alpine's busybox includes netstat, so use that instead. https://claude.ai/code/session_01Vm6NLaQuzM4VosAotqS1q8
This commit is contained in:
+1
-1
@@ -101,7 +101,7 @@ services:
|
|||||||
exec turnserver $$ARGS
|
exec turnserver $$ARGS
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "ss -uln | grep -q ':3478'"]
|
test: ["CMD-SHELL", "netstat -uln | grep -q ':3478'"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|||||||
Reference in New Issue
Block a user