|
@@ -142,6 +142,9 @@ upstream {{ $upstream_name }} {
|
|
{{ $address := where $container.Addresses "Port" $port | first }}
|
|
{{ $address := where $container.Addresses "Port" $port | first }}
|
|
{{ template "upstream" (dict "Container" $container "Address" $address "Network" $containerNetwork) }}
|
|
{{ template "upstream" (dict "Container" $container "Address" $address "Network" $containerNetwork) }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
+ {{ else }}
|
|
|
|
+ # Cannot connect to network of this container
|
|
|
|
+ server 127.0.0.1 down;
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|