Merge pull request #17 from lmilius/patch-1
Add expose section to docker compose template
This commit is contained in:
commit
2f75db00e8
@ -58,6 +58,12 @@ services:
|
|||||||
- {{ port }}
|
- {{ port }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% 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) %}
|
{% if ( container.environment is defined ) or ( container.include_global_env_vars is defined and container.include_global_env_vars) %}
|
||||||
environment:
|
environment:
|
||||||
{% if container.include_global_env_vars | default(false) %}
|
{% if container.include_global_env_vars | default(false) %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user