diff --git a/nginx.tmpl b/nginx.tmpl index b340473..3a14626 100644 --- a/nginx.tmpl +++ b/nginx.tmpl @@ -112,7 +112,7 @@ upstream {{ $upstream_name }} { {{ range $knownNetwork := $CurrentContainer.Networks }} {{ range $containerNetwork := $container.Networks }} - {{ if eq $knownNetwork.Name $containerNetwork.Name }} + {{ if or (eq $knownNetwork.Name $containerNetwork.Name) (eq $knownNetwork.Name "host") }} ## Can be connect with "{{ $containerNetwork.Name }}" network {{/* If only 1 port exposed, use that */}}