About
An enterprise workshop to put Docker Swarm
into practice by deploying a
WordPress
application with DB
.
- Clone this repository using HTTPS or SSH
- Install Vagrant & VirtualBox.
- Config the cluster in the Vagrantfile if you need it:
#Vagrantfile #Config BOX_DISTRIBUTION = "ubuntu/jammy64" #Ubuntu distribution(see wiki.ubuntu.com/Releases) MEMORY = "1024" #Memory allocated to each machine MANAGERS = 1 #Number of managers MANAGER_IP = "172.20.20.1" #Manager IP WORKERS = 3 #Number of workers WORKER_IP = "172.20.20.10" #Workers IP CPUS = 2 #Number of CPUs allocated to each machine VAGRANTFILE_API_VERSION = "2" #Vagrantfile version
- Run the installation with :
make up
orvagrant up
🎉 The cluster is now working!
💡 You can list all available commands with make help
.
Otherwise :
- Remove all managers & workers resources :
make remove
orvagrant destroy
- Suspend all machines with
make stop
orvagrant halt
See the LICENSE file.
- Docker Swarm Cluster Setup With Vagrant, Gaurav Talele, on medium.com.
- Inspired by tdi/vagrant-docker-swarm (but with less complexity and updated).