This repository is part of a blog post on Docker Swarm examples using VirtualBox, OVH Openstack, Microsoft Azure and Amazon Web Services AWS:
- IT wars Docker swarm VirtualBox example
- IT wars Docker swarm OVH Openstack example
- IT wars Docker swarm Azure example
- IT wars Docker swarm Amazon Web Services AWS
Script in action:
- The init-virtualbox.sh script will automaticaly create several VirtualBox VM using docker-machine and start Docker Swarm Ochestrator
- The init-ovh.sh script will automaticaly create several OVH Openstack VM using docker-machine and start Docker Swarm Cluster
- The init-azure.sh script will automaticaly create several Microsoft Azure cloud VM using docker-machine and init Docker Swarm Scalable Services
- The init-aws.sh script will automaticaly create several Amazon Web Services EC2 instances using docker-machine and init Docker Swarm Services Stack
- Then it create a virtual network (optional)
- Finaly start a web stack with docker swarm services
-
This web stack is based on :
- haproxy loadbalancer
- varnish cache
- h2o web server
- phpfpm application server
-
For AWS I use Docker samples voting stack and to remove Amazon Web Services EC2 instance use: remove-aws.sh
Fill free to fork my code and have a look to my blog series.