2024-02-17 19:01:04 +01:00
|
|
|
services:
|
|
|
|
coturn:
|
|
|
|
container_name: coturn
|
2024-04-06 22:11:15 +02:00
|
|
|
image: docker.io/coturn/coturn:4-alpine
|
2024-02-17 19:01:04 +01:00
|
|
|
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
|