traefik/docker.tmpl

12 lines
470 B
Cheetah
Raw Normal View History

2015-09-02 19:13:25 +00:00
[backends]{{range .Containers}}
[backends.backend-{{getBackend .}}.servers.server-{{.Name | replace "/"}}]
url = "http://{{.NetworkSettings.IPAddress}}:{{getPort .}}"
2015-09-02 19:13:25 +00:00
{{end}}
[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"
value = "{{$host}}.zenika.fr"
{{end}}