What's the advantage and disadvantage of running traefik with `swarmMode = true`?

The documentation does not make it clear when or why swarmMode = true should be used (when deploying using docker stack deploy). This is confusing as Traefik can still be deployed using docker stack deploy when swarmMode = false.

Since there is additional setup required when swarm mode is set,such as having to specify the ports and placing labels under the service (deploy) and not container, what are the advantages or disadvantages of using swarmMode = true?

Hello @gregsifr,

Docker swarm mode is used to configure a cluster of docker hosts, and to allow services to be scheduled on the swarm: (Swarm mode overview | Docker Documentation)

If you are not using swarm mode, then you are only able to route to containers that exist on the docker host Traefik is running on.

If you are running swarm only on a single node, you may choose to use either method.

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