Merge pull request #15 from itsamenathan/master

Adding user option to template
This commit is contained in:
Alex Kretzschmar 2023-07-24 14:42:26 -04:00 committed by GitHub
commit e6f222c44c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,13 +23,13 @@ services:
privileged: {{ container.privileged }}
{% endif %}
{% if container.cap_add is defined %}
cap_add:
cap_add:
{% for cap in container.cap_add %}
- {{ cap }}
{% endfor %}
{% endif %}
{% if container.group_add is defined %}
group_add:
group_add:
{% for group in container.group_add %}
- {{ group }}
{% endfor %}
@ -154,6 +154,9 @@ services:
- {{ envfile }}
{% endfor %}
{% endif %}
{% if container.user is defined %}
user: {{ container.user }}
{% endif %}
{% if container.restart is defined %}
restart: {{ container.restart }}
{% endif %}