[docker backend] - Add config flag to set refreshSeconds for swarmmode ticker

This commit is contained in:
Thomas Krzero
2018-11-27 17:44:04 +01:00
committed by Traefiker Bot
parent 7a93bcc869
commit 9d26839e54
3 changed files with 22 additions and 12 deletions

View File

@@ -46,6 +46,7 @@ func NewTraefikDefaultPointersConfiguration() *TraefikConfiguration {
defaultDocker.ExposedByDefault = true
defaultDocker.Endpoint = "unix:///var/run/docker.sock"
defaultDocker.SwarmMode = false
defaultDocker.SwarmModeRefreshSeconds = 15
// default File
var defaultFile file.Provider