Skip to content

Instantly share code, notes, and snippets.

@sdesalas
Last active August 3, 2024 08:23
Show Gist options
  • Save sdesalas/52e38639d712ed678f885f8aefff8f81 to your computer and use it in GitHub Desktop.
Save sdesalas/52e38639d712ed678f885f8aefff8f81 to your computer and use it in GitHub Desktop.
Coturn
version: '3.7'
services:
app:
image: coturn/coturn
#ports:
# - 3478:3478/tcp
# - 3478:3478/udp
# - 5349:5349/tcp # TLS
# - 5349:5349/udp # TLS
# - 49152-49200:49152-49200/udp
network_mode: host # Ports already mapped
restart: unless-stopped
environment:
DETECT_EXTERNAL_IP: yes
DETECT_RELAY_IP: yes
command: ["--log-file=stdout", "--external-ip=$(detect-external-ip)", "--max-port=49200"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment