Ver Fonte

Merge pull request #898 from remipichon/master

Do not bind upstream with 'ingress' network
Jason Wilder há 7 anos atrás
pai
commit
817db85aae
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      nginx.tmpl

+ 1 - 1
nginx.tmpl

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