Running etcd in rancher

I’m curious about thoughts/best practices around running a clustered piece of software such as etcd in Rancher. Getting a docker-compose going for that was… tricky… because of the circular dependencies. https://gist.github.com/tobowers/2bd1ebac14be0cf0a10f is what I came up with using the grand ambassador.

My thought was that I would then use a rancher-compose to swap out the ambassador with a service alias instead.

I’m just curious if there are thoughts about how to do that better.

I believe the latest rancher-compose supports circular links, so you should be able to take advantage of that.

But docker-compose doesn’t support circular links… so what’s the right way to have something that works locally and still works in rancher?