2023-12-08 16:45:50 +01:00
|
|
|
services:
|
|
|
|
coturn:
|
|
|
|
container_name: coturn
|
|
|
|
image: coturn/coturn:alpine
|
|
|
|
restart: always
|
2024-02-08 12:01:58 +01:00
|
|
|
user: '666:666'
|
2023-12-08 16:45:50 +01:00
|
|
|
command:
|
|
|
|
- "--log-file=stdout"
|
|
|
|
- "-c"
|
|
|
|
- "/tmp/turnserver.conf"
|
2024-02-15 11:24:39 +01:00
|
|
|
ports:
|
|
|
|
- 3478:3478
|
|
|
|
- 3478:3478/udp
|
|
|
|
- 5349:5349
|
|
|
|
- 5349:5349/udp
|
|
|
|
- 49152-49172:49152-49172/udp
|
2023-12-08 16:45:50 +01:00
|
|
|
tmpfs:
|
|
|
|
- /var/lib/coturn
|
|
|
|
volumes:
|
|
|
|
- ./turnserver.conf:/etc/coturn/server.conf
|
|
|
|
- ./coturn-docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh
|
2024-01-08 17:01:27 +01:00
|
|
|
- ./secrets.conf:/etc/coturn/secrets.conf
|
2024-02-08 12:01:58 +01:00
|
|
|
- /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
|