Skip to content

craterone/coturn-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 

Repository files navigation

docker-turnserver

A Docker container with the Coturn STUN and TURN server (https://github.com/coturn/coturn)

This is currently running v4.4.5.3.

docker run -d --name=turnserver --restart="on-failure:10" --net=host -p 3478:3478 -p 3478:3478/udp bprodoehl/turnserver

This will use icanhazip (http://major.io/icanhazip-com-faq/) to determine your container's public IP address. If you don't wish to use icanhazip, or you wish to use an external IP address that doesn't match what icanhazip would see, you can specify it in the environment:

docker run -d -e EXTERNAL_IP=1.2.3.4 --name=turnserver --restart="on-failure:10" --net=host -p 3478:3478 -p 3478:3478/udp bprodoehl/turnserver

Environment Parameters

  • SKIP_AUTO_IP -- binds to any address, useful for IPv4 and IPv6 dual-stack when also running with --net=host
  • EXTERNAL_IP -- optional manually-specified external IP address
  • PORT -- listening port for STUN and TURN
  • LISTEN_ON_PUBLIC_IP -- bind to the external IP
  • USE_IPV4 -- forces IPv4 when determining the external IP
  • REALM -- Server name used for the oAuth authentication purposes
  • ENABLE_SSL -- Enable secure communications, default path is /etc/cert/server.crt and /etc/cert/server.key(path not exist if not mount)
  • SSL_CRT_FILE -- certificate file path
  • SSL_KEY_FILE -- private key file path
  • ENABLE_SQLITE -- enable SQLite database, default file name is /var/db/turndb.sqlite3
  • ENABLE_MOBILITY -- enable Mobility with ICE (MICE) specs support
  • USERNAME -- static username accounts for long term credentials mechanism, only work with PASSWORD
  • PASSWORD -- static credential for long term credentials mechanism, only work with USERNAME
  • STATIC_AUTH_SECRET -- 'Static' authentication secret value (a string) for TURN REST API only.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published