# Run coturn on your VM:  docker compose up -d
# host networking is required so the UDP relay port range works without per-port mapping.
services:
  coturn:
    image: coturn/coturn:latest
    container_name: coturn
    restart: unless-stopped
    network_mode: host
    volumes:
      - ./turnserver.conf:/etc/coturn/turnserver.conf:ro
      - /etc/letsencrypt:/etc/letsencrypt:ro   # TLS cert for turns:
    command: ["-c", "/etc/coturn/turnserver.conf"]
