I can configure a service with the file provider like so:
http:
services:
example:
loadBalancer:
serversTransport: insecureTransport@file
servers:
- url: "https://example.com/"
I'm running Traefik on ECS, so file providers are not ideal (they have to be baked into the image).
I'd like to define the same service using Docker labels, something like this:
"traefik.http.services.example.loadbalancer.servers.0" = "https://example.com/"
Is this a possibility?
1 Like
The needed parameter loadBalancer.servers.url
is not supported in dynamic config from Docker (reference), only from providers.file
.
Make sure to leave a "Thumb up" on this Gihub issue to show your interest in this feature.
PS: Note that the index is usually written in square brackets in the docs:
- traefik.http.routers.blog.tls.domains[0].main=example.org
- traefik.http.routers.blog.tls.domains[0].sans=*.example.org
system
Closed
4
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.