turn: change to individual roles

This commit is contained in:
Nico Schottelius 2023-11-06 20:06:20 +01:00
parent df4c1ee0e1
commit 6ac203ce26
5 changed files with 31 additions and 3 deletions

View file

@ -14,10 +14,10 @@ runa:
hosts: hosts:
mtx-turn-1.ankr.corp-services.app: mtx-turn-1.ankr.corp-services.app:
docker_compose: docker_compose:
- coturn - turn1
mtx-turn-2.ankr.corp-services.app: mtx-turn-2.ankr.corp-services.app:
docker_compose: docker_compose:
- coturn - turn2
lat: lat:
hosts: hosts:
mtx-elem-1.lat.internal.ru.com: mtx-elem-1.lat.internal.ru.com:

View file

@ -1,4 +1,4 @@
realm=turn.corp-serv.net realm=turn-1.corp-serv.net
no-tcp-relay no-tcp-relay
listening-ip=0.0.0.0 listening-ip=0.0.0.0
listening-port=3478 listening-port=3478

View file

@ -0,0 +1,12 @@
version: '3.8'
services:
coturn:
image: coturn/coturn:latest
restart: unless-stopped
network_mode: "host"
volumes:
- ./turnserver.conf:/etc/turnserver.conf
- ./coturn/privkey.pem:/etc/ssl/private/privkey.pem:ro
- ./coturn/cert.pem:/etc/ssl/certs/cert.pem:ro
- ./nginx:/etc/nginx/conf.d
- /ssl:/ssl

View file

@ -0,0 +1,16 @@
realm=turn-2.corp-serv.net
no-tcp-relay
listening-ip=0.0.0.0
listening-port=3478
min-port=49152
max-port=65535
log-file=stdout
verbose
pidfile=/var/tmp/turnserver.pid
use-auth-secret
static-auth-secret=ihaaCac6Oow3ohzuvequ6esoo9eegheex
tls-listening-port=5349
pkey=/ssl/certificate.keyplain
cert=/ssl/chain.crt