Add expose section to docker compose template
This commit is contained in:
parent
e6f222c44c
commit
735df5e4c7
@ -58,6 +58,12 @@ services:
|
||||
- {{ port }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if container.expose is defined %}
|
||||
expose:
|
||||
{% for expose_port in container.expose %}
|
||||
- {{ expose_port }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if ( container.environment is defined ) or ( container.include_global_env_vars is defined and container.include_global_env_vars) %}
|
||||
environment:
|
||||
{% if container.include_global_env_vars | default(false) %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user