In my traefik.toml file I have the following:
[file] watch = true [consul] endpoint = "consul:8500" watch = true prefix = "traefik"
Traefik dashboard doesn't pick up anything stored in consul if I don't include the [file] flag. (even after executing "traefik storeconfig" in the traefik-alpine container)
But this also causes a problem. If I do include the [file] flag, in the Traefik dashboard ui, File and Consul are separate providers.
When I then go and change, say, a backend url in the consul key/value store, it shows up changed in the Consul provider in the Traefik dashboard, but not in the File provider.
When I try hitting a frontend connected to that backend, it still routes to the old url (presumably to the file provider).
Is there a way to tell Traefik to give the consul provider precedence over the file provider? Or is there a way to utilize the consul provider without having to explicitly place a [File] flag in the initial config?