Add group_add to template

This commit is contained in:
Fuzzy 2021-03-30 22:32:23 -04:00 committed by GitHub
parent f367cdaa11
commit 857af474c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,6 +25,12 @@ services:
- {{ cap }}
{% endfor %}
{% endif %}
{% if container.group_add is defined %}
group_add:
{% for group in container.group_add %}
- {{ group }}
{% endfor %}
{% endif %}
{% if container.devices is defined %}
devices:
{% for device in container.devices %}
@ -105,4 +111,4 @@ services:
restart: {{ container.restart }}
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}