From 6723fcd6d54a6bca78618184e8c93cb0f7c588c2 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Sun, 7 Jan 2024 15:31:39 +0200 Subject: [PATCH] Add labels to matrix-mautrix-googlechat.service and use --mount instead of -v --- .../templates/systemd/matrix-mautrix-googlechat.service.j2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/roles/custom/matrix-bridge-mautrix-googlechat/templates/systemd/matrix-mautrix-googlechat.service.j2 b/roles/custom/matrix-bridge-mautrix-googlechat/templates/systemd/matrix-mautrix-googlechat.service.j2 index 3c092b8fe..13bb97f47 100644 --- a/roles/custom/matrix-bridge-mautrix-googlechat/templates/systemd/matrix-mautrix-googlechat.service.j2 +++ b/roles/custom/matrix-bridge-mautrix-googlechat/templates/systemd/matrix-mautrix-googlechat.service.j2 @@ -27,8 +27,9 @@ ExecStart={{ devture_systemd_docker_base_host_command_docker }} create \ {% if matrix_mautrix_googlechat_container_http_host_bind_port %} -p {{ matrix_mautrix_googlechat_container_http_host_bind_port }}:8080 \ {% endif %} - -v {{ matrix_mautrix_googlechat_config_path }}:/config:z \ - -v {{ matrix_mautrix_googlechat_data_path }}:/data:z \ + --mount type=bind,src={{ matrix_mautrix_googlechat_config_path }},dst=/config \ + --mount type=bind,src={{ matrix_mautrix_googlechat_data_path }},dst=/data \ + --label-file={{ matrix_mautrix_googlechat_base_path }}/labels \ {% for arg in matrix_mautrix_googlechat_container_extra_arguments %} {{ arg }} \ {% endfor %}