Remove providerTemplates dir, moved in templates
This commit is contained in:
parent
1fdff9dae4
commit
5dea2e7902
11 changed files with 12 additions and 11 deletions
14
templates/docker.tmpl
Normal file
14
templates/docker.tmpl
Normal 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}}
|
Loading…
Add table
Add a link
Reference in a new issue