Merge f97e759105 into cc9edec1c6
This commit is contained in:
commit
33b5273ee0
@ -126,6 +126,10 @@ upstream {{ .Upstream }} {
|
|||||||
{{ if $containerNetwork.IP }}
|
{{ if $containerNetwork.IP }}
|
||||||
{{ $server_found = "true" }}
|
{{ $server_found = "true" }}
|
||||||
server {{ $containerNetwork.IP }}:{{ $port }};
|
server {{ $containerNetwork.IP }}:{{ $port }};
|
||||||
|
{{/* The container is in the host network and wants to be exposed */}}
|
||||||
|
{{ else if (and $container.Env.VIRTUAL_PORT (eq $containerNetwork.Name "host")) }}
|
||||||
|
{{ $server_found = "true" }}
|
||||||
|
server 127.0.0.1:{{ $port }};
|
||||||
{{ else }}
|
{{ else }}
|
||||||
# /!\ No IP for this network!
|
# /!\ No IP for this network!
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user