Do not bind upstream with 'ingress' network that is given to all nodes in swarm mode

This commit is contained in:
Rich Tibbett 2017-03-24 17:45:18 +01:00
parent 619943ac1e
commit 6c8009c049

View file

@ -108,7 +108,7 @@ upstream {{ $upstream_name }} {
{{ range $knownNetwork := $CurrentContainer.Networks }}
{{ range $containerNetwork := $container.Networks }}
{{ if eq $knownNetwork.Name $containerNetwork.Name }}
{{ if (and (ne $containerNetwork.Name "ingress") (eq $knownNetwork.Name $containerNetwork.Name)) }}
## Can be connect with "{{ $containerNetwork.Name }}" network
{{/* If only 1 port exposed, use that */}}