services: coturn: image: coturn/coturn:4.6.3 container_name: webspeak-coturn restart: unless-stopped # Host networking keeps the configured relay UDP range and external-ip # mapping predictable. On Linux, replace it with explicit ports only if # your platform does not support host mode. network_mode: host environment: TURN_SECRET: ${TURN_SECRET:?set TURN_SECRET in .env} TURN_REALM: ${TURN_REALM:-webspeak} TURN_EXTERNAL_IP: ${TURN_EXTERNAL_IP:?set TURN_EXTERNAL_IP in .env} TURN_MIN_PORT: ${TURN_MIN_PORT:-49160} TURN_MAX_PORT: ${TURN_MAX_PORT:-49200} command: - -n - --log-file=stdout - --no-cli - --fingerprint - --lt-cred-mech - --use-auth-secret - --static-auth-secret=${TURN_SECRET} - --realm=${TURN_REALM} - --external-ip=${TURN_EXTERNAL_IP} - --listening-port=3478 - --min-port=${TURN_MIN_PORT} - --max-port=${TURN_MAX_PORT} - --stale-nonce=600 - --no-multicast-peers - --denied-peer-ip=0.0.0.0-0.255.255.255 - --denied-peer-ip=10.0.0.0-10.255.255.255 - --denied-peer-ip=127.0.0.0-127.255.255.255 - --denied-peer-ip=169.254.0.0-169.254.255.255 - --denied-peer-ip=172.16.0.0-172.31.255.255 - --denied-peer-ip=192.168.0.0-192.168.255.255 - --denied-peer-ip=::1 - --denied-peer-ip=fc00::-fdff:ffff:ffff:ffff:ffff:ffff:ffff:ffff - --denied-peer-ip=fe80::-febf:ffff:ffff:ffff:ffff:ffff:ffff:ffff - --denied-peer-ip=ff00::-ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff