As part of my DevOps Engineering capstone at Abuja Data School, I worked on containerizing a Task Management API.
The objective was to understand how to package an application and its dependencies into containers, making it easier to build, run, test, and deploy consistently across environments.
The application was built with Flask and PostgreSQL.
Here's how I approached the project.
Understanding the Application Architecture
Before containerizing the application, I examined its structure and understood how the API communicated with the database.
The application used Flask for its API layer and PostgreSQL for persistent data storage.
Architecture components
Flask: Handles API requests and application logic.
Gunicorn: Serves the Flask application.
PostgreSQL: Stores task records.
Docker: Packages the application into a container.
Docker Compose: Coordinates the application and database services.
Cloning the Repository
I started by cloning the task management project:
git clone…