New to traefik! I have a problem with middleware

I am using dynamic configuration file with docker-compose.yaml file. The problem is the dashboard shows the middleware but the middleware is not connecting to localhost that I am running. I changed my token and The x-url.