Summary of Setup a High-Availability Docker Swarm Stack on AWS
In this article, you’ll find several CloudFormation templates. They will help you set up and deploy a High-Availability Docker stack so you can easily install Docker Swarm on AWS. You can have a Docker-ready environment in minutes by launching each stack in the order below. Satisfying DevOps best practices means repeatable infrastructure and application deployments. The templates contained here are very similar to what you get when using Caylent – give it a try, it’s free.
You can deploy each CloudFormation stack by clicking the ‘Launch Stack’ button underneath the description. They are intended to be used collectively. The Alert stack is optional but recommended.
The Docker Stack has been designed with Docker Swarm in mind, though it can also be used with just about any scheduler or orchestration engine.
If you’re looking for ways to use these stacks, we recommend checking out our other articles, like Creating a High-Availability WordPress cluster with Docker Swarm and EFS.
These templates are completely free, open source, and available on our GitHub. If this guide helped you please consider contributing a pull request or giving the repo a star.
Here are some additional resources to help get you started.
Deploy a VPC
Launch a VPC with 2 private and 2 public subnets in 2 availability zones for High-Availability Stacks.
Configure an Alert (optional)
Creates an SNS topic that alerts you if there is an event in your Stack(s).
Launch a High-Availability Docker Stack
Creates the infrastructure so you can run Docker Swarm in HA; includes two auto-scaling groups containing EC2 instances and a master load balancer.