1
0
Fork 0

feat(docker): add HealthCheck labels.

This commit is contained in:
Fernandez Ludovic 2017-12-16 13:24:07 +01:00 committed by Traefiker
parent 9ee642a7db
commit c26b9b1a5d
6 changed files with 52 additions and 17 deletions

View file

@ -23,6 +23,13 @@
extractorFunc = "{{getMaxConnExtractorFunc $backend}}"
{{end}}
{{if hasHealthCheckLabels $backend}}
[backends.backend-{{$backendName}}.healthCheck]
path = "{{getHealthCheckPath $backend}}"
port = {{getHealthCheckPort $backend}}
interval = "{{getHealthCheckInterval $backend}}"
{{end}}
{{$servers := index $backendServers $backendName}}
{{range $serverName, $server := $servers}}
{{if hasServices $server}}