From c382b2d457437704d629587965d0118b1f00593a Mon Sep 17 00:00:00 2001 From: IronicBadger Date: Fri, 19 Apr 2019 12:39:08 -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 6a7e5a8..a1dd2e3 100644 --- a/templates/docker-compose.yml.j2 +++ b/templates/docker-compose.yml.j2 @@ -22,6 +22,12 @@ services: - {{ item }} {% endfor %} {% endif %} +{% if item.labels is defined %}} + labels: +{% for item in item.labels %} + - "{{ item }}" +{% endfor %} +{% endif %} {% if ( item.environment is defined ) or ( item.include_global_env_vars ) %} environment: {% if item.include_global_env_vars %}