I'm using Serf to instead of linking containers together so I can restart Docker containers without links breaking. On each server I run one container with the Serf ports exposed that every other local container links to and then uses Serf to discover other local containers. This works fine one a single server, but I'd like to link the two servers and make them discover the services running on both of them, so I could eventually bring in another slave server if I want.
The problem is that once I connect both of them by running serf join with the other servers IP, they get in contact but then immediately see the other server and its containers as failing, which is logical.
Is there anything I can do just use one cluster for both containers and servers? Or is there anything else I can use for communication between servers and containers instead of my own hacked up solution?