Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dockerized Flask Web Application

Docker Python Flask

Project Overview

This project demonstrates containerization of a Python Flask web application using Docker. The application is packaged into a Docker image and deployed as a container with port mapping for browser accessibility.

Technologies Used

  • Python 3.11
  • Flask
  • Docker
  • Git
  • GitHub

Architecture

Browser
   ↓
Docker Container
   ↓
Flask Application

Screenshots

Application Running

Application Running

Docker Containers

Docker Containers

Docker Images

Docker Images

Docker Logs

Docker Logs

Project Highlights

  • Containerized a Flask application using Docker.
  • Built and managed Docker images and containers.
  • Configured port mapping and container networking.
  • Troubleshot deployment and runtime issues using Docker logs and shell access.
  • Managed source code using Git and GitHub.

Project Structure

docker-webapp/
│
├── Screenshots/
│   ├── app-running.png
│   ├── docker-ps.png
│   ├── docker-images.png
│   └── docker-logs.png
│
├── app.py
├── requirements.txt
├── Dockerfile
├── README.md
└── .gitignore

Build Docker Image

docker build -t flask-app .

Run Docker Container

docker run -d -p 5001:5000 flask-app

Verify Application

Open:

http://localhost:5001

Expected Output:

Hello from Docker Container!

Docker Commands Used

docker build
docker run
docker ps
docker logs
docker exec -it <container-id> sh
docker stop <container-id>
docker start <container-id>

Learning Outcomes

  • Docker Image Creation
  • Container Lifecycle Management
  • Port Mapping
  • Container Troubleshooting
  • Log Monitoring
  • Container Debugging
  • Container Networking
  • Docker CLI Operations

Author

Vivek C Raj

GitHub: https://github.com/vivek65666

LinkedIn: https://linkedin.com/in/vivekcraj

About

This project demonstrates how to containerize a Python Flask web application using Docker.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages