1
0
Fork 0

Remove providerTemplates dir, moved in templates

This commit is contained in:
emile 2015-10-22 14:02:14 +02:00
parent 1fdff9dae4
commit 5dea2e7902
11 changed files with 12 additions and 11 deletions

14
templates/docker.tmpl Normal file
View file

@ -0,0 +1,14 @@
[backends]{{range .Containers}}
[backends.backend-{{getBackend .}}.servers.server-{{.Name | replace "/" "" | replace "." "-"}}]
url = "http://{{.NetworkSettings.IPAddress}}:{{getPort .}}"
weight = {{getWeight .}}
{{end}}
[frontends]{{range $host, $containers := .Hosts}}
[frontends.frontend-{{$host}}]
{{$container := index $containers 0}}
backend = "backend-{{getBackend $container}}"
[frontends.frontend-{{$host}}.routes.route-host-{{$host}}]
rule = "Host"
value = "{{$host}}.{{getDomain $container}}"
{{end}}