Docker Swarm Tutorial - Deploying Spring Boot Microservices to AWSIn a previous tutorial we had deployed services in a docker swarm using docker stacks. We were using Play With Docker to simulate multiple nodes in Docker Swarm. In this tutorial we will be starting multiple AWS EC2 instances and deploying the microservices on them using Docker Swarm.
Docker Tutorial - Table Of ContentsDocker Deploying Spring Based WAR Application to Docker Deploying Spring Based JAR Application to Docker Deploying Multiple Spring Boot Microservices using Docker Networking Deploying Multiple Spring Boot Microservices using Docker Compose Deploying Spring Boot + MYSQL Application to Docker Publishing Docker Image to DockerHub Deploy Docker Swarm services using Play With Docker Deploy Docker Swarm services using Docker Stack Deploy Docker Swarm services to multiple AWS EC2 instances Docker Cheat Sheet
VideoThis tutorial is explained in the below Youtube Video.
Starting multiple EC2 instances for deploying services using Docker SwarmFor this you will need to register with Amazon web services and create an AWS account. When registering the service we will need to provide credit card details. AWS is free for a period of 1 year. But there are some usage limitations. If these are crossed then AWS will charge you. In this tutorial we will be starting two AWS EC2 instance. Once we are done with this tutorial do remember to stop/terminate the EC2 instances.
Once we have registered with AWS go to the services section and select EC2-
We will see the EC2 Dashboard. We will see there are zero instances running.
From the left side menu select the Security Group
For running swarm in containers docker has mentioned the rules. We need to open the following ports-