fix(compose): made port expose optional
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
@@ -10,7 +10,7 @@ services:
|
||||
networks:
|
||||
- net
|
||||
{% endif %}
|
||||
{% if service.ports is iterable %}
|
||||
{% if service.ports is defined and service.ports is iterable %}
|
||||
{% if service.ports[0].internal != 'proxy_only' %}
|
||||
ports:
|
||||
{% for port in service.ports %}
|
||||
|
||||
Reference in New Issue
Block a user