2015-09-02 19:13:25 +00:00
|
|
|
[backends]{{range .Containers}}
|
2015-09-09 14:49:51 +00:00
|
|
|
[backends.backend-{{getBackend .}}.servers.server-{{.Name | replace "/"}}]
|
|
|
|
url = "http://{{.NetworkSettings.IPAddress}}:{{getPort .}}"
|
2015-09-02 19:13:25 +00:00
|
|
|
{{end}}
|
|
|
|
|
2015-09-09 14:49:51 +00:00
|
|
|
[routes]{{range $host, $containers := .Hosts}}
|
|
|
|
[routes.route-{{$host}}]
|
|
|
|
backends = [{{range $container := $containers}}"backend-{{getBackend $container}}",{{end}}]
|
|
|
|
[routes.route-{{$host}}.rules.rule-host-{{$host}}]
|
2015-09-02 19:13:25 +00:00
|
|
|
category = "Host"
|
2015-09-09 14:49:51 +00:00
|
|
|
value = "{{$host}}.zenika.fr"
|
|
|
|
{{end}}
|