Docker-compose: deploying service in multiple hosts
We can do this with docker compose v3 now. https://docs.docker.com/engine/swarm/#feature-highlights https://docs.docker.com/compose/compose-file/ You have to initialize the swarm cluster using command $ docker swarm init You can add more nodes as worker or manager – https://docs.docker.com/engine/swarm/join-nodes/ Once you have your both nodes added to the cluster, pass your compose v3 i.e deployment file to create a … Read more