Docker Community Forums

Share and learn in the Docker community.

Docker Swarm and Consul production setup recommendation

docker

(Binaryanomaly) #1

Hi,

I’d like to set up a production HA Docker Swarm cluster.

Docker Swarm needs a Key Value store as a precondition, consul in this case.

Now I’m asking what a clever setup would be:

  • Consul should run in Docker containers
  • Consul must be HA and automatically scaleable
  • Consul containers should be managed with Docker Swarm (this would need consul running though)

Constraints

  • Running consul on the host is not an option
  • Having to manage consul containers manually is not an option
  • Docker Swarm with a Docker Hub token is not an option

Approach

Any ideas how this chicken or the egg problem can be solved in a clean and reliable manner for efficient operation?

Multiple swarm instances would certainly look like a reasonable
approach but how to setup the initial swarm without consul and swarm?
Thanks.

PS: Feel also free to answer my question over at stackexchange’s serverfault


(Marco Sampellegrini) #2

Hi, have you been able to figure something out?

I’m looking into this as well, but couldn’t find a proper solution yet.

Thanks


(Binaryanomaly) #3

Hi,

Not really. Best approach looks to me atm something like RancherOS where you have a system docker instance and a user docker instance. But I have not looked at it in detail yet.

Cheers


(Marco Sampellegrini) #4

Ok thanks, I’ll look into that :wink: