GithubHelp home page GithubHelp logo

docker-turnserver's Introduction

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

docker-turnserver's People

Contributors

bprodoehl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-turnserver's Issues

Cannot build/run image locally

When I try to clone this repo, and build/run the image locally, the below error message continues to print. I can pull the image directly from the Docker registry and run it successfully, though.

image
(The errors print forever....)

Here's what my docker-compose.yml looks like for this image:

services:
  stun:
    build:
      # The below dir contains the repo
      context: ./docker-turnserver
    container_name: stun
    ports:
      - 3478:3478
      - 3478:3478/udp
    network_mode: host
    restart: on-failure:10
    environment:
      - SKIP_AUTO_IP=true

Credentials?

What are default username and password to use?

I tried something as

var TURN = {
  url: 'turn:13.126.14.50:3478',
  credential: 'turn',
  username: 'turn'
};

It did not work.

Credentials

Help

How do I set the credentials for the trun server?

Do not use --net=host in the docker command

If --net=host is set, there is no need to expose the ports "-p..." because the container runs in the host's network stack and all ports are exposed.

Have you tried run without "--net=host"?

port TCP 5766

Is there a specific reason for turnserver to be listening on port TCP 5766 besides 3478?

Default username and password

Hello, I'm deploying the turnserver in a docker container. I need a username and password to pass into my webRTC app:

rtc.SERVER = {
    iceServers:[
      {url: "turn:", username:"", credential:""}
    ]
};

What are the default credentials? Also how can we change the credentials?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.