I have a quick question with regards to the service labels when deploying Traefik v2.0 in Docker Swarm. For the Docker Swarm service with the Traefik v2.0 image (using docker compose yaml file), under deploy > labels, do I want to have that set to traefik.enable=false? I have pasted a snippet of a docker compose to make it clearer of what I am talking about.
And to answer it, I think that you indeed need to set traefik.enable=false on your traefik container if you want it to ignore itself. That is, if you haven't already set exposedbydefault to false.
Thank you for your reply. It was very helpful. I just have a quick follow up question for you. Would there ever be a reason for me to add docker labels traefik service itself?