Weights
This commit is contained in:
parent
46ef489b03
commit
4dc5b34122
8 changed files with 40 additions and 11 deletions
|
@ -1,6 +1,7 @@
|
|||
[backends]{{range .Containers}}
|
||||
[backends.backend-{{getBackend .}}.servers.server-{{.Name | replace "/" "" | replace "." "-"}}]
|
||||
url = "http://{{.NetworkSettings.IPAddress}}:{{getPort .}}"
|
||||
weight = {{getWeight .}}
|
||||
{{end}}
|
||||
|
||||
[routes]{{range $host, $containers := .Hosts}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue