Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/flaviostutz/coturn
- Owner: flaviostutz
- License: mit
- Created: 2020-02-12T12:45:41.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-16T19:34:52.000Z (over 4 years ago)
- Last Synced: 2024-10-10T23:18:59.469Z (about 1 month ago)
- Language: Shell
- Size: 39.1 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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"