Slightly figured it out. To launch directly to gain access to the dashboard, we need this:
api:
dashboard: true
insecure: true
entryPoints:
traefik:
address: ":80"
We need a clear indication of the entry point “traefik”.
But I would like to set up authorization and other goodies. If I understand correctly, then you need to configure routes in the “/etc/traefik” directory. Something like this:
# DYNAMIC CONFIG (dashboard.yaml)
http:
routers:
traefik-dashboard:
rule: "Host(`traefik.local`)"
service: api@internal
entryPoints:
- "web"
And in traefik.yaml specify this:
providers:
file:
directory: /etc/traefik
watch: true
But it doesn’t work for me. Although I registered the name on my local DNS. It pings. But I can’t go in by name or address.