services: coturn: container_name: coturn image: coturn/coturn:alpine restart: always user: '666:666' command: - "--log-file=stdout" - "-c" - "/tmp/turnserver.conf" ports: - 3478:3478 - 3478:3478/udp - 5349:5349 - 5349:5349/udp - 49152-49172:49152-49172/udp 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