Skip to content

Coturn Example

Alex X edited this page May 6, 2021 · 2 revisions

docker-compose.yml

Change volumes to your location.

version: '3.1'services:
coturn:
image: instrumentisto/coturnnetwork_mode: hostvolumes:
- ~/docker/coturn.conf:/my/coturn.confcommand: -c /my/coturn.conf

coturn.conf

Change realm, external-ip and user.

# TURN server name and realm
realm=123.123.123.123
server-name=turnserver
# Use fingerprint in TURN message
fingerprint
# IPs the TURN server listens to
listening-ip=0.0.0.0
# External IP-Address of the TURN server
external-ip=123.123.123.123
# Main listening port
listening-port=3478
# Further ports that are open for communication
min-port=10000
max-port=20000
# Log file path
# log-file=/var/log/turnserver.log
# Enable verbose logging
# verbose
# Specify the user for the TURN authentification
user=test:test123
# Enable long-term credential mechanism
lt-cred-mech

Clone this wiki locally