Traefik 2.5 Reach services by path

First of all I hope this is the right place for my request.
I have already spent time reading the documentation and searching various forums, but somehow I can't find the bug.
I have one domain, I want to reach the different services through different paths.
In my example: https://mydomain.com/portainer and https://mydomain.com/dashboard

Traefik is version 2.5 and runs on Docker-CE on Debian 11.

The problem is that my current configuration always results in a "404 page not found". However, the redirection from HTTP to HTTPS works fine.

docker-compose.yml

traefik.yml

Can anyone give me a hint what I am doing wrong here?

Hi,did you figure it out? I'm having almost the same problem.