2026-10-26 05:59:55 +01:00
|
|
|
# Optional TURN relay, used only by a future/externally integrated WebRTC setup.
|
|
|
|
|
services:
|
|
|
|
|
coturn:
|
|
|
|
|
image: coturn/coturn:4.6
|
2026-10-28 06:38:24 +01:00
|
|
|
pull_policy: always
|
2026-11-10 16:29:10 +01:00
|
|
|
ports:
|
|
|
|
|
- "${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"
|
2026-11-11 09:42:51 +01:00
|
|
|
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}
|
2026-10-26 05:59:55 +01:00
|
|
|
secrets:
|
|
|
|
|
- coturn_secret
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
|
|
secrets:
|
|
|
|
|
coturn_secret:
|
2026-11-10 16:29:10 +01:00
|
|
|
file: ./optional/secrets/coturn_secret
|