Add support for mounting additional volumes to matrix-coturn

This commit is contained in:
Slavi Pantaleev
2019-03-19 09:16:30 +02:00
parent a50ea0f0a9
commit 018aeed5e9
2 changed files with 9 additions and 0 deletions

View File

@ -20,6 +20,9 @@ ExecStart=/usr/bin/docker run --rm --name matrix-coturn \
-p 3478:3478/udp \
-p {{ matrix_coturn_turn_udp_min_port }}-{{ matrix_coturn_turn_udp_max_port }}:{{ matrix_coturn_turn_udp_min_port }}-{{ matrix_coturn_turn_udp_max_port }}/udp \
-v {{ matrix_coturn_config_path }}:/turnserver.conf:ro \
{% for volume in matrix_coturn_container_additional_volumes %}
-v {{ volume.src }}:{{ volume.dst }}:{{ volume.options }} \
{% endfor %}
{{ matrix_coturn_docker_image }} \
-c /turnserver.conf
ExecStop=-/usr/bin/docker kill matrix-coturn