Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/flaviostutz/coturn

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

Last synced: 19 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# coturn

[](https://hub.docker.com/r/flaviostutz/coturn)

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

## Usage

* Create a docker-compose.yml file

```yml
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"