Merge pull request #17 from lmilius/patch-1

Add expose section to docker compose template
This commit is contained in:
Alex Kretzschmar 2024-03-15 20:09:57 -07:00 committed by GitHub
commit 2f75db00e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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