https://github.com/bitebitbytebeta/dockerdemo
Based on the https://github.com/KaurSanmeet/DockerDemo
https://github.com/bitebitbytebeta/dockerdemo
Last synced: 5 months ago
JSON representation
Based on the https://github.com/KaurSanmeet/DockerDemo
- Host: GitHub
- URL: https://github.com/bitebitbytebeta/dockerdemo
- Owner: bitebitbytebeta
- Created: 2025-05-16T05:26:35.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-16T06:08:12.000Z (about 1 year ago)
- Last Synced: 2025-08-02T12:46:04.087Z (11 months ago)
- Language: HTML
- Size: 5.66 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DockerDemo
Based on https://github.com/KaurSanmeet/DockerDemo
## demo app - developing with Docker
This demo app shows a simple user profile app set up using
- index.html with pure js and css styles
- nodejs backend with express mode
- mongodb for data storage
All components are docker-based
#### To start the application
Step 1: start mongodb and mongo-express
docker-compose -f docker-compose.yaml up
_You can access the mongo-express under localhost:8080 from your browser_
Step 2: in mongo-express UI - create a new database "my-db"
Step 3: in mongo-express UI - create a new collection "users" in the database "my-db"
Step 4: start node server
node server.js
_You can access the application under localhost:3000 from your browser_
#### To build a docker image from the application
docker build -t my-app:1.0 .
The dot "." at the end of the command denotes location of the Dockerfile.