RPI Docker Swarm

How would I setup docker for swarm mode? i have heard that i should either deploy globally or to one host... I was also wondering what would happen if i have setup a dns lookup to one of my master nodes so I can access it from the web. What would happen if that node went down? can I program traefik to compensate?