Merge pull request #14 from coredotbin/command
Accept either string or array as `command` option
This commit is contained in:
commit
80da5dc175
@ -84,7 +84,14 @@ services:
|
|||||||
mem_limit: {{ container.mem_limit }}
|
mem_limit: {{ container.mem_limit }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if container.command is defined %}
|
{% if container.command is defined %}
|
||||||
|
{% if container.command is string %}
|
||||||
command: {{ container.command }}
|
command: {{ container.command }}
|
||||||
|
{% else %}
|
||||||
|
command:
|
||||||
|
{% for command in container.command %}
|
||||||
|
- {{ command }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if container.security_opt is defined %}
|
{% if container.security_opt is defined %}
|
||||||
security_opt:
|
security_opt:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user