2018-11-27 16:42:04 +00:00
|
|
|
[global]
|
2018-02-16 10:04:04 +00:00
|
|
|
debug=true
|
|
|
|
|
|
|
|
[entryPoints]
|
|
|
|
[entryPoints.http]
|
2018-11-27 16:42:04 +00:00
|
|
|
address = ":8000"
|
2018-02-16 10:04:04 +00:00
|
|
|
|
|
|
|
[api]
|
|
|
|
|
2018-11-27 16:42:04 +00:00
|
|
|
[providers]
|
|
|
|
[providers.docker]
|
|
|
|
endpoint = "unix:///var/run/docker.sock"
|
|
|
|
watch = true
|
|
|
|
exposedByDefault = false
|
|
|
|
|
|
|
|
[providers.file]
|
2018-02-16 10:04:04 +00:00
|
|
|
|
2018-11-14 09:18:03 +00:00
|
|
|
[Routers]
|
|
|
|
[Routers.router-1]
|
|
|
|
Service = "service-test"
|
|
|
|
Rule = "PathPrefix:/file"
|
2018-04-11 14:30:04 +00:00
|
|
|
|
2018-11-14 09:18:03 +00:00
|
|
|
[Services]
|
|
|
|
[Services.service-test]
|
|
|
|
[Services.service-test.LoadBalancer]
|
|
|
|
|
|
|
|
[[Services.service-test.LoadBalancer.Servers]]
|
|
|
|
URL = "http://{{ .IP }}"
|
|
|
|
Weight = 1
|