Containers

{% for container in containers %}

{{container.attrs['Config']['Labels']['com.docker.compose.project']}}

{{container.name}}
{% if container.status=="running" %} {% for port in container.attrs['NetworkSettings']['Ports'] %} {{ port.split("/")[0] }} {%endfor%} {%endif%}
{%endfor%}