mirror of
https://github.com/strukturag/nextcloud-spreed-signaling.git
synced 2025-04-14 15:38:29 +00:00
Switch to official Coturn docker image.
This commit is contained in:
parent
da87913c0e
commit
c91dfc558d
5 changed files with 52 additions and 38 deletions
|
@ -1,6 +1,5 @@
|
||||||
/bin
|
/bin
|
||||||
/docker/janus
|
/docker/janus
|
||||||
/docker/coturn
|
|
||||||
/Dockerfile
|
/Dockerfile
|
||||||
/docker-compose.yml
|
/docker-compose.yml
|
||||||
/vendor
|
/vendor
|
||||||
|
|
32
.github/workflows/docker-compose.yml
vendored
Normal file
32
.github/workflows/docker-compose.yml
vendored
Normal 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
|
28
.github/workflows/docker-coturn.yml
vendored
28
.github/workflows/docker-coturn.yml
vendored
|
@ -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,9 +24,25 @@ services:
|
||||||
network_mode: host
|
network_mode: host
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
coturn:
|
coturn:
|
||||||
build: docker/coturn
|
image: coturn/coturn:latest
|
||||||
network_mode: host
|
network_mode: host
|
||||||
environment:
|
#
|
||||||
REALM: nextcloud.domain.invalid
|
# Update command parameters as necessary.
|
||||||
STATIC_SECRET: static_secret_same_in_server_conf
|
#
|
||||||
|
# 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
|
restart: unless-stopped
|
||||||
|
|
|
@ -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…
Add table
Reference in a new issue