From 7007d8f1234e56ebf8900d09dc823ccc7ea5c4ee Mon Sep 17 00:00:00 2001 From: "pulsar89.5" Date: Mon, 4 Mar 2024 13:36:57 +0100 Subject: [PATCH] feat: Add mount option --- templates/podman-quadlet.container.j2 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/templates/podman-quadlet.container.j2 b/templates/podman-quadlet.container.j2 index d949092..2a9c255 100644 --- a/templates/podman-quadlet.container.j2 +++ b/templates/podman-quadlet.container.j2 @@ -22,6 +22,14 @@ AutoUpdate=registry Volume={{ volume }} {% endfor %} +{% for mount in container.get('mounts', []) %} +{% if mount.get('options', []) | length > 0 %} +Mount=type={{ mount.type }},src={{ mount.source }},dst={{ mount.destination }},{{ mount.options | join(',') }} +{% else %} +Mount=type={{ mount.type }},src={{ mount.source }},dst={{ mount.destination }} +{% endif %} +{% endfor %} + {% for port in container.get('ports', []) %} PublishPort={{ port }} {% endfor %}