title: Docker Swarm, multiple hosts not in same local network but reachable over IP
body: <p>I see a lot of examples running multiple Docker nodes in swarm mode, but they all mention that the nodes shares a local/private network. I was wondering, is it possible to connect two hosts on a swarm that are not on a private network but can still reach each others over IP and having the correct ports setup ?</p>
  
  <p><a href="https://i.stack.imgur.com/c8ZZn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c8ZZn.png" alt="enter image description here"></a></p>
  
  <p><strong>This would not be for a production setup.</strong></p>
  
  <p>Are there any Swarm mechanisms that prevent such architecture ?</p>
  
  <p>Thank you for your time !</p>