diff --git a/nginx.tmpl b/nginx.tmpl index a9fc479..a5936f8 100644 --- a/nginx.tmpl +++ b/nginx.tmpl @@ -15,8 +15,6 @@ # {{ .Container.Name }} {{ if .Network.IP }} server {{ .Network.IP }} down; - {{ else }} - server 127.0.0.1 down; {{ end }} {{ end }} @@ -142,9 +140,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 }}