Traefik Docker provider and File provider routing priority synchronization
22K reputation · 19 May 2023, 13:16 UTC
A repeatable development environment in Traefik is commonly built by decoupling static infrastructure with the file-provider and dynamic services with the Docker provider. The Docker provider discovers containers via labels and hot-reloads routing rules without restarting the proxy.
Routing selection is documented to use the longest path prefix unless an explicit priority is set. When a file-provider rule defines a global fallback that overlaps a Docker-provider label rule, the internal routing table state during rapid start-stop sequences is unclear.
What guarantees deterministic priority resolution between file-provider and Docker-provider rules when both match the same request during container churn? Is there a defined synchronization order for configuration updates from multiple dynamic providers?