Fix weight visibility / scope
This commit is contained in:
parent
5e98c61f65
commit
e583285351
1 changed files with 1 additions and 2 deletions
|
@ -74,10 +74,9 @@ server {
|
|||
|
||||
upstream {{ $host }} {
|
||||
{{ range $container := $containers }}
|
||||
{{ $weight := 1 }}
|
||||
{{ if $container.Env.VIRTUAL_WEIGHT }}
|
||||
{{ $weight := $container.Env.VIRTUAL_WEIGHT }}
|
||||
{{ else }}
|
||||
{{ $weight := 1 }}
|
||||
{{end }}
|
||||
{{ $addrLen := len $container.Addresses }}
|
||||
{{/* If only 1 port exposed, use that */}}
|
||||
|
|
Loading…
Reference in a new issue