Initial commit.

This commit is contained in:
yohan 2019-12-14 22:54:10 +01:00
commit fb2a237c80
3 changed files with 20 additions and 0 deletions

2
README Normal file
View File

@ -0,0 +1,2 @@
A secret must be defined before starting the stack :
echo "FIXME" > .env

13
docker-compose.yml Normal file
View File

@ -0,0 +1,13 @@
version: "2.1"
services:
coturn:
container_name: coturn
image: coturn:$VERSION_COTURN
build: "https://git.scimetis.net/yohan/docker-coturn.git"
restart: unless-stopped
network_mode: "host"
command: ["--listening-port", "3478", "--verbose", "--fingerprint", "--use-auth-secret", "--static-auth-secret", "$SECRET", "--realm", "scimetis.net", "--total-quota", "100", "--bps-capacity", "0", "--stale-nonce", "--no-multicast-peers"]
expose:
- "3478"

5
start_or_update.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
unset VERSION_COTURN
VERSION_COTURN=$(git ls-remote https://git.scimetis.net/yohan/docker-coturn.git| head -1 | cut -f 1|cut -c -10) \
sudo -E bash -c 'docker-compose up -d'