Skip to content

Commit a8ee64b

Browse files
author
neilpang
committed
running proxy on host network
1 parent 619943a commit a8ee64b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nginx.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ upstream {{ $upstream_name }} {
108108

109109
{{ range $knownNetwork := $CurrentContainer.Networks }}
110110
{{ range $containerNetwork := $container.Networks }}
111-
{{ if eq $knownNetwork.Name $containerNetwork.Name }}
111+
{{ if or (eq $knownNetwork.Name $containerNetwork.Name) (eq $knownNetwork.Name "host") }}
112112
## Can be connect with "{{ $containerNetwork.Name }}" network
113113

114114
{{/* If only 1 port exposed, use that */}}

0 commit comments

Comments
 (0)