13 lines
606 B
Cheetah
13 lines
606 B
Cheetah
[backends]{{range .Containers}}
|
|
[backends.backend-{{getBackend .}}.servers.server-{{.Name | replace "/" "" | replace "." "-"}}]
|
|
url = "{{getProtocol .}}://{{.NetworkSettings.IPAddress}}:{{getPort .}}"
|
|
weight = {{getWeight .}}
|
|
{{end}}
|
|
|
|
[frontends]{{range $frontend, $containers := .Frontends}}
|
|
[frontends."frontend-{{$frontend}}"]{{$container := index $containers 0}}
|
|
backend = "backend-{{getBackend $container}}"
|
|
[frontends."frontend-{{$frontend}}".routes."route-frontend-{{$frontend}}"]
|
|
rule = "{{getFrontendRule $container}}"
|
|
value = "{{getFrontendValue $container}}"
|
|
{{end}}
|