From fb2a237c80a15b59047a8e5fecf92e753adfcc31 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Sat, 14 Dec 2019 22:54:10 +0100 Subject: [PATCH] Initial commit. --- README | 2 ++ docker-compose.yml | 13 +++++++++++++ start_or_update.sh | 5 +++++ 3 files changed, 20 insertions(+) create mode 100644 README create mode 100644 docker-compose.yml create mode 100755 start_or_update.sh 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' +