A simple, lightweight Python-based reverse proxy using Flask with a Swiggy-inspired dashboard UI, containerized using Docker, and fronted by NGINX as a reverse proxy.
π Features π Reverse proxy logic built with Python & Flask
π¨ Stylish HTML/CSS UI dashboard (Swiggy-like orange theme)
π³ Containerized with Docker (no Compose required)
π NGINX used to proxy traffic to the Flask container
β‘ Quick to set up, great for learning reverse proxy concepts
π Project Structure php Copy Edit python-proxy-ui/ βββ app.py # Flask app with proxy logic βββ requirements.txt # Python dependencies βββ Dockerfile # Flask app Docker build βββ nginx/ β βββ default.conf # NGINX reverse proxy config βββ templates/ β βββ index.html # Frontend dashboard UI βββ static/ β βββ style.css # Orange-themed styling π Tech Stack Python 3.8
Flask 2.x
NGINX (latest)
Docker (Alpine base)
HTML/CSS (responsive card layout)
βοΈ How to Run
1οΈβ£ Build Flask App Image
bash
Copy
Edit
docker build -t python-proxy-ui .
2οΈβ£ Run Flask Container
bash
Copy
Edit
docker run -d --name app python-proxy-ui
3οΈβ£ Run NGINX Container (Reverse Proxy)
bash
Copy
Edit
docker run -d --name nginx -p 80:80
--link app:app
-v $(pwd)/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
nginx
Now open: http://localhost
You'll see the reverse proxy dashboard in action!
πΈ Screenshots Add your UI and setup screenshots here (e.g., dashboard view, NGINX container, etc.)
π Notes The /proxy/ route can be extended to dynamically route traffic.
Replace http://example.com in app.py with your real backend target.
No docker-compose used β just pure Docker for learning purposes.
π§βπ» Author Shreyash Myakal Aspiring AWS & DevOps Engineer | Python & Cloud Enthusiast π LinkedIn β’ Blog β’ GitHub