added label support

This commit is contained in:
alexktz 2020-05-06 23:43:14 -04:00
parent aada0b2025
commit b9abd8676a

View File

@ -16,6 +16,12 @@ services:
- {{ item }}
{% endfor %}
{% endif %}
{% if item.labels is defined %}
labels:
{% for label in item.labels %}
- {{ label }}
{% endfor %}
{% endif %}
{% if item.ports is defined %}
ports:
{% for item in item.ports %}