Skip to content

sneha020902/flask-devops-pipeline

Repository files navigation

Flask DevOps Pipeline

A production-style Flask app containerized with Docker and automatically deployed to AWS EC2 via GitHub Actions CI/CD pipeline.

Python Flask Docker GitHub Actions AWS Nginx


Architecture

Architecture Diagram


Live Demo

App Live


Tech Stack

Layer Technology
App Python + Flask
Containerization Docker
CI/CD GitHub Actions
Cloud AWS EC2 (Free Tier)
Reverse Proxy Nginx
Monitoring AWS CloudWatch

Features

  • Flask app with / and /health endpoints
  • Fully containerized with Docker
  • Auto-deploy on every git push via GitHub Actions
  • Nginx reverse proxy (port 80 → 5000)
  • CloudWatch monitoring + CPU alerts

Project Structure

flask-devops-pipeline/
├── app.py                        # Flask application
├── Dockerfile                    # Container configuration
├── requirements.txt              # Python dependencies
├── .github/workflows/deploy.yml  # CI/CD pipeline
└── screenshots/                  # Project screenshots

Screenshots

GitHub Actions Pipeline

GitHub Actions

AWS EC2 Instance

EC2 Running

CloudWatch Monitoring

CloudWatch Alarm


Run Locally

git clone https://github.com/sneha020902/flask-devops-pipeline.git
cd flask-devops-pipeline
docker build -t flask-devops .
docker run -p 5000:5000 flask-devops
# Visit http://localhost:5000

Author

Sneha Agrawal — M.Sc. Computer Science @ Bauhaus-Universität Weimar 🔗 LinkedIn · GitHub · Portfolio

About

Production-style Flask app with Docker, GitHub Actions CI/CD, AWS EC2, Nginx & CloudWatch monitoring.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors