diff --git a/docker/docker-compose.coturn.yml b/docker/docker-compose.coturn.yml index ee2ccca..c78bc09 100644 --- a/docker/docker-compose.coturn.yml +++ b/docker/docker-compose.coturn.yml @@ -7,16 +7,16 @@ services: - "${COTURN_PORT:-3478}:3478/tcp" - "${COTURN_PORT:-3478}:3478/udp" - "${COTURN_RELAY_PORT_MIN:-49160}-${COTURN_RELAY_PORT_MAX:-49200}:${COTURN_RELAY_PORT_MIN:-49160}-${COTURN_RELAY_PORT_MAX:-49200}/udp" - entrypoint: ["turnserver"] - command: > - -n --use-auth-secret - --static-auth-secret-file=/run/secrets/coturn_secret - --realm=${COTURN_REALM:-heimdall.local} - --fingerprint --no-tlsv1 --no-tlsv1_1 --log-file=stdout - --no-cli - --listening-port=3478 - --min-port=${COTURN_RELAY_PORT_MIN:-49160} - --max-port=${COTURN_RELAY_PORT_MAX:-49200} + entrypoint: ["/bin/sh", "-c"] + command: + - >- + exec turnserver -n --use-auth-secret + --static-auth-secret="$$(cat /run/secrets/coturn_secret)" + --realm=${COTURN_REALM:-heimdall.local} + --fingerprint --no-tlsv1 --no-tlsv1_1 --log-file=stdout + --no-cli --listening-port=3478 + --min-port=${COTURN_RELAY_PORT_MIN:-49160} + --max-port=${COTURN_RELAY_PORT_MAX:-49200} secrets: - coturn_secret restart: unless-stopped diff --git a/skills/optional-server-services/SKILL.md b/skills/optional-server-services/SKILL.md index 1306a45..eca65ab 100644 --- a/skills/optional-server-services/SKILL.md +++ b/skills/optional-server-services/SKILL.md @@ -16,7 +16,8 @@ The Linux and Windows server installers run optional Compose files with the inst ## coturn - Keep `coturn_secret` sourced from `./optional/secrets/coturn_secret`. -- Use `turnserver` as the explicit image entrypoint, bridge networking, and explicit TCP/UDP listener and UDP relay port publications; the upstream image has a `turnadmin` entrypoint, and host networking cannot be combined with useful Compose port mappings. +- coturn 4.6 does not support `--static-auth-secret-file`; read the mounted Docker secret in a shell entrypoint and pass it to `--static-auth-secret`. Do not print the value. +- Use a shell entrypoint that executes `turnserver`, bridge networking, and explicit TCP/UDP listener and UDP relay port publications; the upstream image has a `turnadmin` entrypoint, and host networking cannot be combined with useful Compose port mappings. - Keep the published relay range identical to coturn's `--min-port`/`--max-port` options. Make listener and relay settings configurable with documented defaults. - Set `COTURN_EXTERNAL_IP` only when NAT requires coturn to advertise an explicit public address. The operator must forward the listener and relay range through firewalls/NAT. - Do not claim public TURN reachability from a local container startup. It requires an external ICE/TURN client on a real network.