Skip to content

Mahmoudmetwall2y/Node.js-app-with-Docker-Nginx

Repository files navigation

🚀 Node.js + Docker + Nginx Production Setup

Open in GitPod

A professional Node.js project demonstrating multi-stage Docker builds, Docker Compose for dev & prod, and an Nginx reverse proxy for a production-ready deployment.


🔧 Features

  • Multi-stage Dockerfile (development & production)
  • Healthcheck endpoint (/health)
  • Nginx reverse proxy in production
  • Hot-reload in development
  • Environment-based configuration
  • Makefile with shortcuts
  • .env support for multiple environments

📂 Project Structure

.
├── src/                      # Node.js source code
│   └── index.js              # Main Express server
├── nginx.conf                 # Nginx reverse proxy config
├── Dockerfile                 # Multi-stage Dockerfile
├── docker-compose.yml         # Base compose file
├── docker-compose.dev.yml     # Dev overrides
├── docker-compose.prod.yml    # Prod overrides
├── .env.example               # Example env file
├── .env.development           # Development env vars
├── .env.production            # Production env vars
├── .dockerignore              # Ignore files for Docker builds
├── Makefile                   # Shortcut commands
└── README.md                  # Documentation

📸 Screenshots

Development Mode (Blue Badge)
Dev Screenshot

Production Mode (Red Badge)
Prod Screenshot


🖥️ Tech Stack

  • Node.js
  • Docker
  • Nginx
  • Express

👨‍💻 Author

Mahmoud Metwally
🔗 LinkedIn
💻 GitHub


🌍 Try it Live

You can spin up this project instantly in your browser with GitPod:

Open in GitPod

  • Development server → opens automatically at port 5000
  • Production server → available manually at port 8000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors