🥈Two-tier application using Docker, Docker compose, and image scanning with Docker Scout.
🔗Tools Required:-
Docker: For creating and managing containers.
Docker Compose: For defining and running multi-container Docker applications.
Docker Scout: For scanning Docker images for vulnerabilities. Any code editor (like Visual Studio Code, etc) Access to a basic two-tier application source code.
🔗Step 1:- Launch Instance
⭐ Create an AWS EC2 instance & connect
🔗Step 2:- Install Docker
sudo apt-get install docker.io
⭐ Add your current user to the docker group to get all permissions of the docker
sudo usermod -aG docker $USER
🔗Step 3:- Clone the code
git clone <url>
⭐ Docker compose file
⭐ Start the container using Docker compose
docker-compose up
⭐ It creates two containers
⭐ Access the Flask app in your web browser
🔗Step 4:- Docker Scout
⭐ Create one directory & change the directory
⭐ Install docker scout
curl -sSfL https://raw.githubusercontent.com/docker/scout-cli/main/install.sh | sh -s --
⭐ Run docker scout
📚Happy Learning :)