matrix-docker-compose/ansible/roles/docker-compose/files/coturn/docker-compose.yaml

44 lines
1.2 KiB
YAML
Raw Normal View History

2023-10-13 15:32:08 +02:00
version: '3.8'
services:
coturn:
image: coturn/coturn:latest
restart: unless-stopped
2023-10-17 13:23:05 +02:00
network_mode: "host"
2023-10-13 15:32:08 +02:00
volumes:
- ./turnserver.conf:/etc/turnserver.conf
- ./coturn/privkey.pem:/etc/ssl/private/privkey.pem:ro
- ./coturn/cert.pem:/etc/ssl/certs/cert.pem:ro
2023-10-17 13:23:05 +02:00
- ./nginx:/etc/nginx/conf.d
- /ssl:/ssl
# # environment:
# # - HOSTNAME=${hostname}
# # - LISTENPORT=${listenport}
# # - TLSPORT=${tlsport}
# # - MINPORT=${minport}
# # - MAXPORT=${maxport}
# # - AUTHSECRET=${authsecret}
# ports:
# # STUN/TURN
# - "3478:3478"
# - "3478:3478/udp"
# - "3479:3479"
# - "3479:3479/udp"
# - "80:80"
# - "80:80/udp"
# ## STUN/TURN SSL
# - "5349:5349"
# - "5349:5349/udp"
# - "5350:5350"
# - "5350:5350/udp"
# - "443:443"
# - "443:443/udp"
# - "49152-49252:49152-49252"
# - "49152-49252:49152-49252/udp"
# # Relay Ports
# - "49152-65535:49152-65535"
# - "49152-65535:49152-65535/udp"
2023-10-13 15:32:08 +02:00
# command: sh -c "/etc/turnserver.conf.sh"
# entrypoint: sh -c "docker-entrypoint.sh && /etc/turnserver.conf.sh && chmod -R 777 /etc/turnsever.conf"
# depends_on:
# - nginx