# Traefik in a swarm access to portainer

**URL:** <https://community.traefik.io/t/traefik-in-a-swarm-access-to-portainer/26246>\
**Category:** Traefik v3 (latest)\
**Tags:** docker-swarm\
**Created:** [January 26, 2025, 4:45am UTC](https://community.traefik.io/t/traefik-in-a-swarm-access-to-portainer/26246 "2025-01-26T04:45:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pedro1x](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/pedro1x/32/9896_2.png) [@pedro1x](https://community.traefik.io/u/pedro1x)\
**Post date:** [January 26, 2025, 4:45am UTC](https://community.traefik.io/t/traefik-in-a-swarm-access-to-portainer/26246/1 "2025-01-26T04:45:41Z")

</div>

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](http://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](http://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](http://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

---

<div class="post-metadata">

**Author:** ![bluepuma77](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bluepuma77](https://community.traefik.io/u/bluepuma77)\
**Post date:** [January 26, 2025, 6:53am UTC](https://community.traefik.io/t/traefik-in-a-swarm-access-to-portainer/26246/2 "2025-01-26T06:53:26Z")

</div>

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

Enable and check Traefik debug log ([doc](https://doc.traefik.io/traefik/observability/logs/#level)) and Traefik access log in JSON format ([doc](https://doc.traefik.io/traefik/observability/access-logs/#format)).

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