Traefik in a swarm access to portainer

Hi guys,
I have set Traefik on my docker swarm to have my internal services use wildcard certificate.
I deployed nginx-hello docker and I am able to get to it using my domain name. I did same for traefik.
However, I've been banging my head for 2 days with portainer. It is deployed on same docker network as traefik, I am able to access it by ip, but from my domain portainer.mydomain.com , I am not able to , I just get the error site can't be reached.
Looking at traefik logs I see this when I try to connect to portainer:

2025-01-26T04:43:43Z DBG github.com/traefik/traefik/v3/pkg/server/service/loadbalancer/wrr/wrr.go:196 > Service selected by WRR: 15e8d2921bff0e05
2025-01-26T04:43:43Z DBG log/log.go:245 > 2025/01/26 04:43:43 reverseproxy.go:677: httputil: ReverseProxy read error during body copy: read tcp 10.0.6.83:60992->10.0.6.89:9443: read: connection reset by peer
2025-01-26T04:43:43Z DBG github.com/traefik/traefik/v3/pkg/middlewares/recovery/recovery.go:45 > Request has been aborted [10.0.0.2:18703 - /]: net/http: abort Handler middlewareName=traefik-internal-recovery middlewareType=Recovery

Share your full Traefik static and dynamic config, and docker-compose.yml if used.

Enable and check Traefik debug log (doc) and Traefik access log in JSON format (doc).

For formatting, use 3 backticks before and after code/config, or select it and press </> button.