This is a beginner DevOps project where I containerized a simple Node.js Express web application using Docker.
The goal of this project is to understand the basic DevOps workflow of packaging an application into a Docker image and running it as a container locally.
- Node.js
- Express.js
- Docker
- VS Code
- Git/GitHub
- Terminal
Developer writes application code
→ Dockerfile is created
→ Docker image is built
→ Docker container is started
→ Application runs on localhost
→ Logs and health endpoint are used for verification
devops-docker-basic-app/
│
├── app/
│ ├── package.json
│ ├── server.js
│
├── Dockerfile
├── .dockerignore
└── README.md
git clone <your-repository-url>
cd devops-docker-basic-appdocker build -t devops-basic-app:v1 .docker run -d -p 3000:3000 --name devops-basic-container devops-basic-app:v1curl http://localhost:3000Health check:
curl http://localhost:3000/healthdocker logs devops-basic-containerdocker stop devops-basic-container
docker rm devops-basic-container- How to create a simple Node.js web application
- How to write a Dockerfile
- How to build a Docker image
- How to run a Docker container
- How port mapping works in Docker
- How to check container logs
- How to add a basic health check endpoint
- How to troubleshoot common Docker issues