Added extra_hosts compatibility
This commit is contained in:
parent
43291cf96e
commit
98007791fc
@ -7,6 +7,12 @@ services:
|
|||||||
{{ container.service_name }}:
|
{{ container.service_name }}:
|
||||||
image: {{ container.image }}
|
image: {{ container.image }}
|
||||||
container_name: {{ container.container_name }}
|
container_name: {{ container.container_name }}
|
||||||
|
{% if container.extra_hosts is defined %}
|
||||||
|
extra_hosts:
|
||||||
|
{% for extra_host in extra_hosts %}
|
||||||
|
- {{ extra_host }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
{% if container.network_mode is defined %}
|
{% if container.network_mode is defined %}
|
||||||
network_mode: {{ container.network_mode }}
|
network_mode: {{ container.network_mode }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user