traefik/docker.tmpl
2015-09-09 16:49:51 +02:00

12 lines
No EOL
470 B
Cheetah

[backends]{{range .Containers}}
[backends.backend-{{getBackend .}}.servers.server-{{.Name | replace "/"}}]
url = "http://{{.NetworkSettings.IPAddress}}:{{getPort .}}"
{{end}}
[routes]{{range $host, $containers := .Hosts}}
[routes.route-{{$host}}]
backends = [{{range $container := $containers}}"backend-{{getBackend $container}}",{{end}}]
[routes.route-{{$host}}.rules.rule-host-{{$host}}]
category = "Host"
value = "{{$host}}.zenika.fr"
{{end}}