I assume you create your deployments in Portainer using “stacks” based on compose files. If so, what you are looking for is what container labels (in case of swarm service labels) need to be set to configure the reverse proxy part.
I am still using Traefik1.x with Swarm, as I realy hate the idea that they removed the feature to share certificates amongst nodes using etcd3/consul. The labels changed in Traefik2, so I won’t be able to test the labels I would gather together from the documentation.
And then there is the thing that no one in kubernetes world realy needs Traefik, as plenty of powerfull ingress-controller exist that already do the job… this kind of killed my motivation to get further involve with Treafik. Don’t get me wrong, it IS possible to use it with kubernetes, but it is more complicated to use in that context and the default solutions are already doing everything one could ask for.
Though Traefik definitly is the most comfortable rp you can use with plain docker or swarm.
@rimelek I assume you are familiar with Cloudflare’s caching behavior and their ip obfuscation? It does differ from e.g. how you expect a reverse proxy or loadbalancer to work. I don’t remember the exact problems, but I remember some complications along the line. Just saying: keep in mind it brings its own kind of magic to the table.