vps/coturn/docker-compose.yaml
2024-02-08 12:01:58 +01:00

20 lines
656 B
YAML

services:
coturn:
container_name: coturn
image: coturn/coturn:alpine
restart: always
user: '666:666'
network_mode: host
command:
- "--log-file=stdout"
- "-c"
- "/tmp/turnserver.conf"
tmpfs:
- /var/lib/coturn
volumes:
- ./turnserver.conf:/etc/coturn/server.conf
- ./coturn-docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh
- ./secrets.conf:/etc/coturn/secrets.conf
- /etc/letsencrypt/live/turn.viyurz.fr/fullchain.pem:/etc/coturn/cert.pem
# chown root:666 & chmod 640 on privkey file
- /etc/letsencrypt/live/turn.viyurz.fr/privkey.pem:/etc/coturn/pkey.pem