From fff84de367621c3456f57dfdb2bed78331334ecd Mon Sep 17 00:00:00 2001 From: Remi Pichon Date: Thu, 10 Aug 2017 12:30:00 +0200 Subject: [PATCH] Do not bind upstream with 'ingress' network Merging https://github.com/jwilder/nginx-proxy/pull/774 and https://github.com/jwilder/nginx-proxy/commit/a8ee64b0596ffc0a8df369e88d1115b80afb04fa --- nginx.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx.tmpl b/nginx.tmpl index f23e627..85be0aa 100644 --- a/nginx.tmpl +++ b/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 */}}