A simple containerized web application using Docker and Nginx web server.
- Docker: Container platform for packaging applications
- Nginx: High-performance web server
- HTML/CSS: Frontend design
- Docker Desktop installed on your system
- Basic knowledge of command line
docker build -t nginx-web-app .Option A: Using Docker command
docker run -d -p 8080:80 --name my-nginx-app nginx-web-appOption B: Using Docker Compose (Recommended)
docker-compose up -dOpen your browser and go to:
http://localhost:8080
docker psdocker logs nginx-web-appdocker stop nginx-web-appdocker rm nginx-web-appdocker-compose downdocker-nginx-project/
│
├── Dockerfile # Docker image configuration
├── docker-compose.yml # Docker Compose configuration
├── index.html # Main HTML file
└── README.md # Project documentation
- Understanding Docker containerization
- Working with Nginx web server
- Creating Dockerfiles
- Using Docker Compose for container orchestration
- Port mapping and container networking
- Containerization: How to package applications in Docker containers
- Nginx Configuration: Serving static websites with Nginx
- Docker Commands: Building, running, and managing containers
- Port Mapping: Exposing container services to host machine
- Docker Compose: Simplifying multi-container setups
- Add custom Nginx configuration
- Implement SSL/TLS certificates
- Add environment variables
- Create multi-stage builds
- Implement container health checks
Sumit Ranjan Jha
- Email: sumitjhawiki@gmail.com
- GitHub: SumitWiki
- LinkedIn: sumitranjanjha7
This project is open source and available for learning purposes.