2015-09-02 19:13:25 +00:00
|
|
|
[backends]{{range .Containers}}
|
2015-09-10 13:12:28 +00:00
|
|
|
[backends.backend-{{getBackend .}}.servers.server-{{.Name | replace "/" "" | replace "." "-"}}]
|
2015-10-23 16:59:08 +00:00
|
|
|
url = "{{getProtocol .}}://{{.NetworkSettings.IPAddress}}:{{getPort .}}"
|
2015-09-10 14:14:08 +00:00
|
|
|
weight = {{getWeight .}}
|
2015-09-02 19:13:25 +00:00
|
|
|
{{end}}
|
|
|
|
|
2015-10-23 07:49:19 +00:00
|
|
|
[frontends]{{range $frontend, $containers := .Frontends}}
|
|
|
|
[frontends."frontend-{{$frontend}}"]{{$container := index $containers 0}}
|
2015-09-09 15:41:33 +00:00
|
|
|
backend = "backend-{{getBackend $container}}"
|
2015-10-23 07:49:19 +00:00
|
|
|
[frontends."frontend-{{$frontend}}".routes."route-frontend-{{$frontend}}"]
|
|
|
|
rule = "{{getFrontendRule $container}}"
|
|
|
|
value = "{{getFrontendValue $container}}"
|
2015-10-23 16:59:08 +00:00
|
|
|
{{end}}
|