Browse Source

Switch to official Coturn docker image.

pull/259/head
Joachim Bauch 1 month ago
parent
commit
c91dfc558d
No known key found for this signature in database
GPG Key ID: 77C1D22D53E15F02
  1. 1
      .dockerignore
  2. 32
      .github/workflows/docker-compose.yml
  3. 28
      .github/workflows/docker-coturn.yml
  4. 24
      docker-compose.yml
  5. 5
      docker/coturn/Dockerfile

1
.dockerignore

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

32
.github/workflows/docker-compose.yml

@ -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

28
.github/workflows/docker-coturn.yml

@ -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

24
docker-compose.yml

@ -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

5
docker/coturn/Dockerfile

@ -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"]
Loading…
Cancel
Save