đDeployed a Containerized Flask Message App on AWS EC2 using Docker
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 wi...

Source: DEV Community
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-netw