I'm trying to setup traefic for my app and no matter what i tried, dashboard would not work when i change port, so i decided to start from scratch and i took this sample from documentation
version: "3.3"
services:
traefik:
image: "traefik:v3.2"
container_name: "traefik-demo"
command:
- "--log.level=DEBUG"
- "--api.insecure=true"
- "--api.dashboard=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entryPoints.web.address=:80"
- "--entryPoints.dashboard.address=:9090"
ports:
- "80:80"
- "9090:9090"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
whoami:
image: "traefik/whoami"
container_name: "simple-service"
labels:
- "traefik.enable=true"
- "traefik.http.routers.whoami.rule=Host(`whoami.localhost`)"
- "traefik.http.routers.whoami.entrypoints=web"
when i use port 8080 as in documentation, i can access dashboard.
when i change it to 9090, i get 404 error and there is no traces of request in traefik logs.
Can someone help what i'm doing wrong?