feat: Add mount option

This commit is contained in:
pulsar89.5 2024-03-04 13:36:57 +01:00
parent 319439c3ac
commit 7007d8f123

View File

@ -22,6 +22,14 @@ AutoUpdate=registry
Volume={{ volume }} Volume={{ volume }}
{% endfor %} {% 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', []) %} {% for port in container.get('ports', []) %}
PublishPort={{ port }} PublishPort={{ port }}
{% endfor %} {% endfor %}