Back to articles
🚀Deployed a Containerized Flask Message App on AWS EC2 using Docker
How-ToDevOps

🚀Deployed a Containerized Flask Message App on AWS EC2 using Docker

via Dev.toAvinash wagh

In this article, I’ll walk through how I built and deployed a containerized Message Board Web Application using Python Flask and MySQL on AWS EC2. This project helped me gain hands-on experience with Docker, cloud deployment, and backend development. 📌 Project Overview The application is a simple message board where users can: Add messages Delete messages Store data in a MySQL database Both the application and database are containerized using Docker and communicate over a shared network. 🛠️ Tech Stack Python Flask MySQL Docker AWS EC2 Linux 🏗️ Architecture The project consists of two main containers: Flask Application Container MySQL Database Container These containers are connected via a custom Docker network: message-network The Flask app connects to MySQL using the container name ( mysql-db ) as the hostname. ⚙️ Step-by-Step Implementation 1️⃣ Create Docker Network docker network create message-network 2️⃣ Run MySQL Container docker run -d \ --name mysql-db \ --network message-netwo

Continue reading on Dev.to

Opens in a new tab

Read Full Article
2 views

Related Articles