vps/roles/coturn/templates/docker-compose.yaml

19 lines
870 B
YAML
Raw Normal View History

2024-02-17 19:01:04 +01:00
services:
coturn:
container_name: coturn
image: coturn/coturn:alpine
restart: always
user: {{ users['coturn'] }}:{{ users['coturn'] }}
ports:
- {{ ports['coturn_listening'] }}:{{ ports['coturn_listening'] }}
- {{ ports['coturn_listening'] }}:{{ ports['coturn_listening'] }}/udp
- {{ ports['coturn_tls_listening'] }}:{{ ports['coturn_tls_listening'] }}
- {{ ports['coturn_tls_listening'] }}:{{ ports['coturn_tls_listening'] }}/udp
- {{ ports['coturn_relay_min'] }}-{{ ports['coturn_relay_max'] }}:{{ ports['coturn_relay_min'] }}-{{ ports['coturn_relay_max'] }}/udp
tmpfs:
- /var/lib/coturn
volumes:
- ./turnserver.conf:/etc/coturn/turnserver.conf
- {{ volumes['coturn_tls_certificate_file'] }}:/etc/coturn/cert.pem
- {{ volumes['coturn_tls_certificate_key_file'] }}:/etc/coturn/pkey.pem