Routes not showing in dashboard

There is static config (Environment, Commandline arguments, traefik.{toml,yml,yaml}). And dynamic config(multiple providers), you have put the dynamic config in the static config.

The routers,middlewares and services are defined in the dynamic config. Your case you want a dynamic file provider. Make a file with the dynamic config, mount it and configure traefik to use it.