From b9abd8676a08925cd8b8971ab4dd6989fca74a04 Mon Sep 17 00:00:00 2001 From: alexktz Date: Wed, 6 May 2020 23:43:14 -0400 Subject: [PATCH] added label support --- templates/docker-compose.yml.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/docker-compose.yml.j2 b/templates/docker-compose.yml.j2 index b7b61dc..dda11bc 100644 --- a/templates/docker-compose.yml.j2 +++ b/templates/docker-compose.yml.j2 @@ -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 %}