coturn turn and stun server
· One min read
Stack file with turn and stun server
services:
main:
image: coturn/coturn
networks:
- host
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: any
delay: 5s
max_attempts: 1
resources:
limits:
memory: 512M
cpus: '0.4'
reservations:
memory: 128M
cpus: '0.2'
placement:
constraints:
- node.role == manager
command:
- --lt-cred-mech
- --realm=139.59.157.166
- --user=test:1234
- --no-cli
- --min-port=49152
- --max-port=65535
- --no-tls
- --no-dtls
- --external-ip=139.59.157.166
- --log-file=stdout
# ports:
# - "3478:3478"
# - "3478:3478/udp"
# - "3479:3479"
# - "3479:3479/udp"
# - "5080:80"
# - "5080:80/udp"
volumes:
- coturn_data:/var/lib/coturn
volumes:
coturn_data:
networks:
host:
external: true
name: host