Where does the Traefik Portainer config come from?

Hi everyone,

I have one container for Portainer and one fro Traefik. Whenever I start the latter, I see the following in the logs:

time="2024-04-25T15:42:51Z" level=debug msg="Creating middleware" middlewareName=pipelining routerName=portainer@docker entryPointName=http serviceName=portainer middlewareType=Pipelining
time="2024-04-25T15:42:51Z" level=debug msg="Creating load-balancer" serviceName=portainer routerName=portainer@docker entryPointName=http
time="2024-04-25T15:42:51Z" level=debug msg="Creating server 0 http://172.17.0.3:8000" routerName=portainer@docker entryPointName=http serviceName=portainer serverName=0
time="2024-04-25T15:42:51Z" level=debug msg="child http://172.17.0.3:8000 now UP"
time="2024-04-25T15:42:51Z" level=debug msg="Propagating new UP status"
time="2024-04-25T15:42:51Z" level=debug msg="Added outgoing tracing middleware portainer" routerName=portainer@docker middlewareType=TracingForwarder middlewareName=tracing entryPointName=http

But I don't want and didn't configure anything for Portainer. I don't see any Traefik-related labels in the Portainer container, don't find any config files, don't see anything special for Portainer in the Traefik container etc.

So why does it do that, where/how do I find the cause for this?

Thanks!

When I start the container explicitly with traefik disabled, I don't get the logs anymore. But why do I need to disable instead of enable? There surel yi some pre-defined Traefik config somewhere, but I can't find it.

docker run [...] -l traefik.enable=false

I would be interested in making disabled traefik for this container persistent as well. It's easy to forget adding the label during updates currently.

Hi veda-tschoening,

welcome to the Traefik community.

I guess it could be the exposedByDefault in the Traefik static configuration (which is true by default), see https://doc.traefik.io/traefik/providers/docker/#exposedbydefault

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.