This is a simple lab cluster with Docker Swarm and Vagrant. It creates 7 VMs with VirtualBox each one has a Debian image, 2GB of RAM and 2 CPUs.
The VMs are configured with individual IPs and the following roles:
- 1 manager node
- 6 worker nodes
- Docker
- Vagrant
- VirtualBox (or any other provider supported by Vagrant)
- Clone this repository
- Run
vagrant up
to create the VMs - Run
vagrant ssh manager
to access the manager node - Run
docker node ls
to see the nodes in the cluster - Open the browser and access the manager node IP address of your choice (or all of them) to see the apache web server running in the cluster.
- Run
vagrant destroy -f
to destroy the VMs