Just as in (almost) any other chapter, we'll start the practical part by setting up a Swarm cluster and deploying the stacks that we used previously.
All the commands from this chapter are available in the 09-self-adapting-services.sh Gist at https://gist.github.com/vfarcic/4a7253f5aaff4c2b7a55170ebbb48cbd.
chmod +x scripts/dm-swarm-09.sh./scripts/dm-swarm-09.sheval $(docker-machine env swarm-1)docker stack ls
We executed the dm-swarm-09.sh script which, in turn, created a Swarm cluster composed of Docker machines, created the networks, and deployed the stacks. The last command listed all the stacks in the cluster. We are running proxy, monitor, exporter, and go-demo stacks. Those four comprise ...