go-bindata static files and templates
This commit is contained in:
parent
79e5ec435a
commit
4a83136970
6 changed files with 32 additions and 9 deletions
14
providerTemplates/docker.tmpl
Normal file
14
providerTemplates/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}}
|
||||
|
||||
[routes]{{range $host, $containers := .Hosts}}
|
||||
[routes.route-{{$host}}]
|
||||
{{$container := index $containers 0}}
|
||||
backend = "backend-{{getBackend $container}}"
|
||||
[routes.route-{{$host}}.rules.rule-host-{{$host}}]
|
||||
category = "Host"
|
||||
value = "{{$host}}.{{$.Domain}}"
|
||||
{{end}}
|
Loading…
Add table
Add a link
Reference in a new issue