2018-01-11 09:04:03 +00:00
|
|
|
server0:
|
2019-01-18 14:18:04 +00:00
|
|
|
image: containous/whoami
|
2018-01-11 09:04:03 +00:00
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
2019-01-18 14:18:04 +00:00
|
|
|
- traefik.routers.rt-server0.entryPoints=http
|
|
|
|
- traefik.routers.rt-server0.rule=Path:/test
|
|
|
|
- traefik.services.service1.loadbalancer.server.port=80
|
2018-01-11 09:04:03 +00:00
|
|
|
server1:
|
2019-01-18 14:18:04 +00:00
|
|
|
image: containous/whoami
|
2018-01-11 09:04:03 +00:00
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
2019-01-18 14:18:04 +00:00
|
|
|
- traefik.routers.rt-server1.entryPoints=http
|
|
|
|
- traefik.routers.rt-server1.rule=Host:frontend1.docker.local
|
|
|
|
- traefik.services.service1.loadbalancer.server.port=80
|
2018-01-11 09:04:03 +00:00
|
|
|
server2:
|
2019-01-18 14:18:04 +00:00
|
|
|
image: containous/whoami
|
2018-01-11 09:04:03 +00:00
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
2019-01-18 14:18:04 +00:00
|
|
|
- traefik.routers.rt-server2.entryPoints=http
|
|
|
|
- traefik.routers.rt-server2.rule=Host:frontend2.docker.local
|
|
|
|
- traefik.services.service2.loadbalancer.server.port=80
|
|
|
|
- traefik.services.service2.loadbalancer.method=drr
|
2018-01-11 09:04:03 +00:00
|
|
|
server3:
|
2019-01-18 14:18:04 +00:00
|
|
|
image: containous/whoami
|
2018-01-11 09:04:03 +00:00
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
2019-01-18 14:18:04 +00:00
|
|
|
- traefik.routers.rt-server3.entryPoints=http
|
|
|
|
- traefik.routers.rt-server3.rule=Host:frontend2.docker.local
|
|
|
|
- traefik.services.service2.loadbalancer.server.port=80
|
|
|
|
- traefik.services.service2.loadbalancer.method=drr
|
2018-01-11 09:04:03 +00:00
|
|
|
authFrontend:
|
2019-01-18 14:18:04 +00:00
|
|
|
image: containous/whoami
|
2018-01-11 09:04:03 +00:00
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
2019-01-18 14:18:04 +00:00
|
|
|
- traefik.routers.rt-authFrontend.entryPoints=httpFrontendAuth
|
|
|
|
- traefik.routers.rt-authFrontend.rule=Host:frontend.auth.docker.local
|
|
|
|
- traefik.routers.rt-authFrontend.middlewares=basicauth
|
|
|
|
- traefik.middlewares.basicauth.basicauth.users=test:$$apr1$$H6uskkkW$$IgXLP6ewTrSuBkTrqE8wj/
|
|
|
|
- traefik.services.service3.loadbalancer.server.port=80
|
|
|
|
digestAuthMiddleware:
|
|
|
|
image: containous/whoami
|
2018-01-11 09:04:03 +00:00
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
2019-01-18 14:18:04 +00:00
|
|
|
- traefik.routers.rt-digestAuthMiddleware.entryPoints=digestAuth
|
|
|
|
- traefik.routers.rt-digestAuthMiddleware.rule=Host:entrypoint.digest.auth.docker.local
|
|
|
|
- traefik.routers.rt-digestAuthMiddleware.middlewares=digestauth
|
|
|
|
- traefik.middlewares.digestauth.digestauth.users=test:traefik:a2688e031edb4be6a3797f3882655c05, test2:traefik:518845800f9e2bfb1f1f740ec24f074e
|
|
|
|
- traefik.services.service3.loadbalancer.server.port=80
|
2018-01-11 09:04:03 +00:00
|
|
|
frontendRedirect:
|
2019-01-18 14:18:04 +00:00
|
|
|
image: containous/whoami
|
2018-01-11 09:04:03 +00:00
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
2019-01-18 14:18:04 +00:00
|
|
|
- traefik.routers.rt-frontendRedirect.entryPoints=frontendRedirect
|
|
|
|
- traefik.routers.rt-frontendRedirect.rule=Path:/test
|
|
|
|
- traefik.routers.rt-frontendRedirect.middlewares=redirecthttp
|
2019-01-22 07:30:04 +00:00
|
|
|
- traefik.middlewares.redirecthttp.redirectScheme.scheme=http
|
|
|
|
- traefik.middlewares.redirecthttp.redirectScheme.port=8000
|
2019-01-18 14:18:04 +00:00
|
|
|
- traefik.services.service3.loadbalancer.server.port=80
|
2018-01-11 09:04:03 +00:00
|
|
|
rateLimit:
|
2019-01-18 14:18:04 +00:00
|
|
|
image: containous/whoami
|
2018-01-11 09:04:03 +00:00
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
2019-01-18 14:18:04 +00:00
|
|
|
- traefik.routers.rt-rateLimit.entryPoints=httpRateLimit
|
|
|
|
- traefik.routers.rt-rateLimit.rule=Host:ratelimit.docker.local
|
|
|
|
- traefik.routers.rt-rateLimit.middlewares=rate
|
|
|
|
- traefik.middlewares.rate.ratelimit.extractorfunc=client.ip
|
|
|
|
- traefik.middlewares.rate.ratelimit.rateset.Rate0.average=1
|
|
|
|
- traefik.middlewares.rate.ratelimit.rateset.Rate0.burst=2
|
|
|
|
- traefik.middlewares.rate.ratelimit.rateset.Rate0.period=10s
|
|
|
|
- traefik.services.service3.loadbalancer.server.port=80
|
2018-01-11 09:04:03 +00:00
|
|
|
frontendWhitelist:
|
2019-01-18 14:18:04 +00:00
|
|
|
image: containous/whoami
|
2018-01-11 09:04:03 +00:00
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
2019-01-18 14:18:04 +00:00
|
|
|
- traefik.routers.rt-frontendWhitelist.entryPoints=http
|
|
|
|
- traefik.routers.rt-frontendWhitelist.rule=Host:frontend.whitelist.docker.local
|
|
|
|
- traefik.routers.rt-frontendWhitelist.middlewares=wl
|
|
|
|
- traefik.middlewares.wl.ipwhitelist.sourcerange=8.8.8.8/32
|
|
|
|
- traefik.services.service3.loadbalancer.server.port=80
|