From 2f5ee5a1b40fc887dada93ea7b6e92866c6ddfc8 Mon Sep 17 00:00:00 2001 From: jpic Date: Mon, 8 Jul 2019 19:31:28 +0200 Subject: [PATCH] Revert "do not create an empty upstream entry for invisible containers" --- nginx.tmpl | 3 --- 1 file changed, 3 deletions(-) diff --git a/nginx.tmpl b/nginx.tmpl index a9fc479..988f68d 100644 --- a/nginx.tmpl +++ b/nginx.tmpl @@ -142,9 +142,6 @@ upstream {{ $upstream_name }} { {{ $address := where $container.Addresses "Port" $port | first }} {{ template "upstream" (dict "Container" $container "Address" $address "Network" $containerNetwork) }} {{ end }} - {{ else }} - # Cannot connect to network of this container - server 127.0.0.1 down; {{ end }} {{ end }} {{ end }}