Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

vinceAmstoutz/vagrant-swarm-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Swarm Cluster for WordPress + DB

About An enterprise workshop to put Docker Swarm into practice by deploying a WordPress application with DB.

Getting started

  1. Clone this repository using HTTPS or SSH
  2. Install Vagrant & VirtualBox.
  3. 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
  4. Run the installation with : make up or vagrant up

🎉 The cluster is now working!

Other commands

💡 You can list all available commands with make help.

Otherwise :

  • Remove all managers & workers resources : make remove or vagrant destroy
  • Suspend all machines with make stop or vagrant halt

License

See the LICENSE file.

Credits