commit fb2a237c80a15b59047a8e5fecf92e753adfcc31 Author: yohan <783b8c87@scimetis.net> Date: Sat Dec 14 22:54:10 2019 +0100 Initial commit. diff --git a/README b/README new file mode 100644 index 0000000..f552426 --- /dev/null +++ b/README @@ -0,0 +1,2 @@ +A secret must be defined before starting the stack : +echo "FIXME" > .env diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..481e2ac --- /dev/null +++ b/docker-compose.yml @@ -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" diff --git a/start_or_update.sh b/start_or_update.sh new file mode 100755 index 0000000..b16699b --- /dev/null +++ b/start_or_update.sh @@ -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' +