Sign inSign up

sharadverma638/hospital-management-system-docker

By sharadverma638

•Updated 13 days ago

3-tier MERN Hospital Management System, Dockerized with Compose & deployed on AWS EC2.

Image
Languages & frameworks
Web servers
Databases & storage
0

80

sharadverma638/hospital-management-system-docker repository overview

⁠🏥 Hospital Management System – Dockerized (MERN)

A 3-tier Hospital Management System (React, Node.js/Express, MongoDB), containerized with Docker and deployed on AWS EC2 using Docker Compose.


⁠📦 Tags

TagContainsSize
frontendReact + Tailwind, served by Nginx~95.7 MB
backendNode.js + Express API~207 MB
mongoMongoDB database~266 MB
docker pull sharadverma638/hospital-management-system-docker:frontend

docker pull sharadverma638/hospital-management-system-docker:backend

docker pull sharadverma638/hospital-management-system-docker:mongo

⁠🏗️ Architecture

Browser → Frontend (Nginx, port 3000)
              ↓
          Backend (Express, port 5000)
              ↓
          MongoDB (27017, internal only)
              ↓
          Volume: mongo-data

All containers run on the custom network hospital-net.


⁠🧰 Tech Stack

LayerTechnology
FrontendReact, Tailwind CSS, React Router
BackendNode.js, Express, JWT, bcrypt
DatabaseMongoDB (Mongoose)
ServerNginx
DevOpsDocker, Docker Compose, AWS EC2

⁠✨ Key Features

  • Multi-stage builds with Alpine-based images
  • Backend runs as a non-root user
  • MongoDB is not exposed publicly
  • Data persists using a named volume
  • Auto-restart with restart: unless-stopped

⁠🚀 How to Run (Docker Compose)

git clone https://github.com/sharadverma638/hospital-management-system-docker.git

cd hospital-management-system-docker

docker-compose up -d --build

docker exec -it hospital-backend node createAdmin.js

Open: http://<your-server-ip>:3000

Environment variable

MONGO_URI=mongodb://mongo:27017/hospital

⁠⚠️ Note

The server IP is set inside the frontend at build time. On your own server, rebuild the frontend using update-ip.sh from the GitHub repo.


Tag summary

Content type

Image

Digest

sha256:268eb517a…

Size

266 MB

Last updated

13 days ago

docker pull sharadverma638/hospital-management-system-docker:mongo