Commit 987cfcb6 authored by ale's avatar ale

Make ports optional in containers

parent ed175c86
Pipeline #3371 passed with stage
in 4 minutes and 39 seconds
......@@ -17,7 +17,7 @@ opts="{{ container.docker_options | default('') }}"
{# Port configuration, and bind mounts #}
{% if container.get('ports', []) %}
{% for port in container.get('ports',[]) %}{{ opt('expose', port) }}{% endfor %}
{% else %}
{% elif container.get('port') %}
{{ opt('expose', container.port) }}
{% endif %}
{{ opt('mount', 'type=tmpfs,destination=/tmp,tmpfs-mode=01777,tmpfs-size=64M') }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment