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 %}