🥈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
http://localhost:5000
🔗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 :)
Subscribe to my newsletter
Read articles from Sarika Kamble directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Sarika Kamble
Sarika Kamble
👋 Hello, and welcome to my DevOps journey! 🚀 I'm Sarika Kamble, passionate about all things AWS DevOps Technology. Currently, on a learning adventure, I'm here to share my journey and Blogs in the world of cloud and DevOps. I'll be sharing my learnings, experiences, and adventures as I dive deep into the world of continuous integration, automation, and cloud technologies. ☁️⚙️ Let's connect, learn, and grow as a vibrant DevOps community. Follow my Hashnode blog, and let's embrace the DevOps adventure together! 🤝🔗 Follow me on LinkedIn: https://www.linkedin.com/in/sarika-kamble-3153b3218/