Initial commit, coturn 4.6 image
This commit is contained in:
commit
d251ffa088
9 changed files with 243 additions and 0 deletions
42
templates/docker-compose.coturn.yml.j2
Normal file
42
templates/docker-compose.coturn.yml.j2
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
version: "3.7"
|
||||
|
||||
services:
|
||||
coturn:
|
||||
image: coturn/coturn:4.6
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "${LISTENING_PORT}:${LISTENING_PORT}"
|
||||
#- "${LISTENING_PORT_TLS}:${LISTENING_PORT_TLS}"
|
||||
- "${MIN_PORT}-${MAX_PORT}:${MIN_PORT}-${MAX_PORT}/udp"
|
||||
command:
|
||||
- "--realm=${COTURN_VIRTUAL_HOST}"
|
||||
#- "--server-name=turn-server"
|
||||
- "--fingerprint"
|
||||
- "--listening-ip=0.0.0.0"
|
||||
- "--external-ip=${EXTERNAL_IP}"
|
||||
#- "--relay-ip=${EXTERNAL_IP}"
|
||||
- "--listening-port=${LISTENING_PORT}"
|
||||
- "--min-port=${MIN_PORT}"
|
||||
- "--max-port=${MAX_PORT}"
|
||||
- "--log-file=stdout"
|
||||
#- "--tls-listening-port=${LISTENING_PORT_TLS}"
|
||||
- "--use-auth-secret"
|
||||
- "--static-auth-secret=${STATIC_AUTH_SECRET}"
|
||||
- "--verbose"
|
||||
labels:
|
||||
traefik.enable: true
|
||||
traefik.port: ${LISTENING_PORT}
|
||||
traefik.http.routers.turn-server.tls: true
|
||||
traefik.http.routers.turn-server.rule: Host(`${COTURN_VIRTUAL_HOST}`)
|
||||
traefik.http.routers.turn-server.entrypoints: websecure
|
||||
traefik.http.routers.turn-server.tls.certresolver: defaultresolver
|
||||
#traefik.udp.routers.turn-server-udp.entrypoints: turn-udp
|
||||
#traefik.udp.routers.turn-server-udp.service: turn-server-udp
|
||||
#traefik.udp.services.turn-server-udp.loadbalancer.server.port: ${LISTENING_PORT}
|
||||
networks:
|
||||
- public
|
||||
|
||||
networks:
|
||||
public:
|
||||
external:
|
||||
name: traefik_public
|
||||
7
templates/env.coturn.j2
Normal file
7
templates/env.coturn.j2
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
COTURN_VIRTUAL_HOST={{ coturn_virtual_host }}
|
||||
EXTERNAL_IP={{ coturn_external_ip }}
|
||||
STATIC_AUTH_SECRET={{ coturn_static_auth_secret }}
|
||||
LISTENING_PORT={{ coturn_listening_port }}
|
||||
LISTENING_PORT_TLS={{ coturn_listening_port_tls }}
|
||||
MIN_PORT={{ coturn_min_port }}
|
||||
MAX_PORT={{ coturn_max_port }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue