Merge pull request #259 from strukturag/official-coturn-docker

Switch to official Coturn docker image.
This commit is contained in:
Joachim Bauch 2022-05-16 11:00:11 +02:00 committed by GitHub
commit 68138eacbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 52 additions and 38 deletions

View File

@ -1,6 +1,5 @@
/bin
/docker/janus
/docker/coturn
/Dockerfile
/docker-compose.yml
/vendor

32
.github/workflows/docker-compose.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: docker-compose
on:
pull_request:
branches: [ master ]
paths:
- '.github/workflows/docker-compose.yml'
- 'docker-compose.yml'
push:
branches: [ master ]
paths:
- '.github/workflows/docker-compose.yml'
- 'docker-compose.yml'
jobs:
pull:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Pull Docker images
run: docker-compose pull
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build Docker images
run: docker-compose build

View File

@ -1,28 +0,0 @@
name: Coturn Docker image
on:
pull_request:
branches: [ master ]
paths:
- '.github/workflows/docker-coturn.yml'
- 'docker/coturn/Dockerfile'
push:
branches: [ master ]
paths:
- '.github/workflows/docker-coturn.yml'
- 'docker/coturn/Dockerfile'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build Docker image
uses: docker/build-push-action@v3
with:
context: docker/coturn

View File

@ -24,9 +24,25 @@ services:
network_mode: host
restart: unless-stopped
coturn:
build: docker/coturn
image: coturn/coturn:latest
network_mode: host
environment:
REALM: nextcloud.domain.invalid
STATIC_SECRET: static_secret_same_in_server_conf
#
# Update command parameters as necessary.
#
# See https://github.com/coturn/coturn/blob/master/README.turnserver for
# available options.
command:
- "--realm"
- "nextcloud.domain.invalid"
- "--static-auth-secret"
- "static_secret_same_in_server_conf"
- "--no-stdout-log"
- "--log-file"
- "stdout"
- "--stale-nonce=600"
- "--use-auth-secret"
- "--lt-cred-mech"
- "--fingerprint"
- "--no-software-attribute"
- "--no-multicast-peers"
restart: unless-stopped

View File

@ -1,5 +0,0 @@
FROM alpine:3.13
RUN apk add --no-cache coturn
CMD ["/bin/sh", "-c", "turnserver --prod --fingerprint --use-auth-secret --static-auth-secret=$STATIC_SECRET --realm=$REALM --no-multicast-peers --no-tls --no-dtls"]