Merge pull request #14 from coredotbin/command

Accept either string or array as `command` option
This commit is contained in:
Alex Kretzschmar 2022-12-29 20:13:20 -05:00 committed by GitHub
commit 80da5dc175
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: