Sign inSign up

thetanishdewase1/fullstackweb

By thetanishdewase1

β€’Updated about 1 year ago

Full Stack website Demonstration. Read Blog on medium : https://medium.com/@tanishdewase222/

Image
API management
Databases & storage
0

151

thetanishdewase1/fullstackweb repository overview

Got it πŸš€ Here’s a nice Docker Hub description you can put in your repo (you can edit project-specific details like ports and env variables):


⁠🐳 Fullstack Web App – Frontend + Backend + MySQL

This project is a mini fullstack web application that uses:

  • Node.js (Backend) β†’ Handles APIs and database connections
  • Nginx (Frontend) β†’ Serves static HTML pages
  • MySQL (Database) β†’ Stores user data

β πŸ”Ή How to Pull Image

To pull the frontend image:

docker pull thetanishdewase1/fullstackweb:v1-frontend

To pull the backend image:

docker pull thetanishdewase1/fullstackweb:v1-backend

β πŸ”Ή How to Run

⁠Run Frontend (Nginx, default port 80)
docker run -d -p 8080:80 thetanishdewase1/fullstackweb:v1-frontend

➑️ Access in browser: http://localhost:8080⁠


⁠Run Backend (Node.js, default port 3000)
docker run -d -p 3000:3000 thetanishdewase1/fullstackweb:v1-backend

➑️ API available at: http://localhost:3000⁠


⁠Run MySQL (default port 3306)
docker run -d -p 3306:3306 --name mysql-db \
-e MYSQL_ROOT_PASSWORD=root \
-e MYSQL_DATABASE=mydb \
mysql:8

β πŸ”Ή Using Docker Compose

Instead of running separately, you can use docker-compose.yml (recommended):

docker-compose up --build

This will start frontend, backend, and MySQL together.


Default Ports Used:

  • Frontend (Nginx) β†’ 80
  • Backend (Node.js) β†’ 3000
  • MySQL (Database) β†’ 3306

Tag summary

Content type

Image

Digest

sha256:efa44fdb6…

Size

378.9 MB

Last updated

about 1 year ago

docker pull thetanishdewase1/fullstackweb:backend