You need to enable Traefik dashboard, either in secure or insecure mode (which uses port 8080), read the doc.
To understand Traefik, it is recommended to read the whole documentation, at least start at the beginning to understand the concepts (static/dynamic, entrypoints, providers, routers/services, TLS).
Then you will understand that api and mydashboard are just names, they can differ per setup, but need to be consistent throughout your setup.
When the dashboard is not functional via domain name what concept are we talking about here?
I can only assume poor documentation as to the examples are not working.
Dashboard is not enabled and when you use it with insecure, then the dashboard will be "hardcoded" to port 8080. Labels won’t change that. And the middleware assignment is wrong.
Insecure Mode
This mode is not recommended because it does not allow the use of security features.
To enable the "insecure mode", use the following options from Traefik's API:
File (YAML)
api:
dashboard: true
insecure: true
File (TOML)
CLI
You can now access the dashboard on the port 8080 of the Traefik instance, at the following URL: http://<Traefik IP>:8080/dashboard/ (trailing slash is mandatory).
My code already works with
http://:8080/dashboard/
I have no idea where I am supposed to insert the api: or why?