From 081d3b6e1e51ed91ed83fafffdd426e8278f9b50 Mon Sep 17 00:00:00 2001 From: Corbin Bartsch Date: Thu, 1 Sep 2022 13:18:32 -0400 Subject: [PATCH] Add array handling for `command` --- templates/docker-compose.yml.j2 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/docker-compose.yml.j2 b/templates/docker-compose.yml.j2 index f992268..ba2d998 100644 --- a/templates/docker-compose.yml.j2 +++ b/templates/docker-compose.yml.j2 @@ -84,7 +84,14 @@ services: mem_limit: {{ container.mem_limit }} {% endif %} {% if container.command is defined %} +{% if container.command is string %} command: {{ container.command }} +{% else %} + command: +{% for command in container.command %} + - {{ command }} +{% endfor %} +{% endif %} {% endif %} {% if container.security_opt is defined %} security_opt: