Initialize a swarm. This machine will be a swarm managerdocker swarm init by default the swarm management port is 2377 Get the command / token to add a second managerdocker swarm join-token manager Get the command / token to add a worker to the swarmdocker swarm join-token worker Leave a swarm from each nodedocker swarm leave Now when a service is started it will be distributed between the servers in the swarmdocker stack deploy -c DOCKER-COMPOSE.yml SERVICE_NAME docker stack deploy --with-registry-auth -c DOCKER-COMPOSE.yml SERVICE_NAME To view the service running in the stackdocker stack ps SERVICENAME docker service ls docker service ps SERVICENAME Remove the stackdocker stack rm SERVICENAME