Add expose section to docker compose template

This commit is contained in:
Luke Milius 2023-10-06 17:53:34 -05:00 committed by GitHub
parent e6f222c44c
commit 735df5e4c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) %}