Skip to content

flaviostutz/coturn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coturn

COTURN docker container. This is a STUN/TURN server. https://github.com/coturn/coturn

Usage

  • Create a docker-compose.yml file
version: "3"

services:

  coturn:
    build: .
    image: flaviostutz/coturn
    network_mode: host
    environment:
      - TURN_USERNAME=coturn
      - TURN_PASSWORD=oursecret
  • Run docker-compose up -d

  • STUN will accept requests port 3478

ENVs

  • PUBLIC_IP - public IP configuration to be used by TURN. If not specified, the public IP will be queried by curl http://icanhazip.com
  • TURN_USERNAME - turn server static username. defaults to 'coturn'. if both 'TURN_USERNAME' and 'TURN_PASSWORD' are empty, TURN server will accept anonymous requests
  • TURN_PASSWORD - turn server static password for specificed user. defaults to 'oursecret'
  • TURN_PORT - turn server port. defaults to '3478'

Considerations

It is advisable to use "network_mode:host" because TURN server will allocate random ports for clients. Currently publishing a wide range of ports in Docker causes too much overhead. With network_mode host it is not the case.

Coturn "realm" is set to "coturn"

About

COTURN docker container. This is a STUN/TURN server. https://github.com/coturn/coturn

Resources

License

Stars

Watchers

Forks

Packages

No packages published