Switch matrix_dendrite_container_additional_volumes from using -v to --mount

Related to e5130372b9.

Depending on the `options` that people provide, this may break
compatibility.
This commit is contained in:
Slavi Pantaleev
2024-01-11 12:15:32 +02:00
parent e5130372b9
commit 881c20bf25
2 changed files with 3 additions and 7 deletions

View File

@ -42,7 +42,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \
--mount type=bind,src={{ matrix_dendrite_nats_storage_path }},dst=/matrix-nats-store,bind-propagation=slave \
--label-file={{ matrix_dendrite_base_path }}/labels \
{% for volume in matrix_dendrite_container_additional_volumes %}
-v {{ volume.src }}:{{ volume.dst }}:{{ volume.options }} \
--mount type={{ volume.type | default('bind' if '/' in volume.src else 'volume') }},src={{ volume.src }},dst={{ volume.dst }}{{ (',' + volume.options) if volume.options else '' }} \
{% endfor %}
{% for arg in matrix_dendrite_container_arguments %}
{{ arg }} \