Microservices
- Microservice is a smaller and indivudually runnable service which can be deployed independently

Next Steps
- containerizing your application.
- understanding
- network
- storage
- resources
- best practices
- Using orchestration to deploy microservices and run them effeciently
Setup
- We will setup the docker on Linux Machine
- SSH into linux machine (ubuntu)
curl -fsSL https://get.docker.com -o install-docker.sh
sh install-docker.sh
- once the docker installed add your current user to docker group
sudo usermod -aG docker <user-name>
# sudo usermod -aG docker ubuntu
- After this exit, relogin and execute
docker info

Containerizing applications
I want to run a simple website
- Our webdesigner has created the following design Refer Here
- Findout how to deploy this to a server.
- To deploy a website, we need webserver
- we have two popular flavors
- Manual steps:
sudo apt update
sudo apt install nginx unzip -y
wget https://templatemo.com/tm-zip-files-2020/templatemo_591_villa_agency.zip
unzip templatemo_591_villa_agency.zip
cd templatemo_591_villa_agency/
sudo cp --recursive . /var/www/html/
-
Access your server by ip
http://<server-ip>
-
What is needed to run this application
- How to access your application
http://<ipaddress>:80
- Containerizing application can be done in two ways
- creating a container and manually deploying application (not recommended)
- Write Dockerfile
- Option 1: Create image manually
- Create a container in interactive mode and run necessary commands to deploy your application
Like this:
Like Loading...