services: coturn: container_name: coturn image: docker.io/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