Skip to content

Commit 80da5dc

Browse files
authored
Merge pull request #14 from coredotbin/command
Accept either string or array as `command` option
2 parents c5836ad + 081d3b6 commit 80da5dc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

templates/docker-compose.yml.j2

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,14 @@ services:
8484
mem_limit: {{ container.mem_limit }}
8585
{% endif %}
8686
{% if container.command is defined %}
87+
{% if container.command is string %}
8788
command: {{ container.command }}
89+
{% else %}
90+
command:
91+
{% for command in container.command %}
92+
- {{ command }}
93+
{% endfor %}
94+
{% endif %}
8895
{% endif %}
8996
{% if container.security_opt is defined %}
9097
security_opt:

0 commit comments

Comments
 (0)