Migration of Nginx Webserver to Highly Available Docker Containers on AWS using Docker Swarm

In this Cloud Migration project based on a real-world scenario, I acted as a DevOps Engineer migrating to AWS, a restaurant application that ran on-premises servers using Nginx.

However, I needed to keep the Nginx solution and deploy it through containers, with high availability, and use Docker Swarm as an orchestration solution. Besides, I used the Elastic Load Balancer (ELB) to ensure high availability on the three EC2 instances, located in different availability zones.

In case of any failure, the website will still be running due to Docker-swarm created in the EC2 instances and Elastic Load Balancer that will distribute the traffic.

1st Step - Creating an Elastic Container Registry

The ECR will be responsible for hosting the docker-swarm image, it can be easily created on AWS with a few clicks. Make sure you’re at Region: N. Virginia — us-east-1

Read More

Tags: Docker Swarm