Skip to content

Roslaan001/docker-nodejs-with-mongodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo contains nodejs app and a dockerfile, To use, follow the steps below

Step 1: Clone the repo
https://github.com/Roslaan001/docker-nodejs-with-mongodb
cd docker-nodejs-with-mongodb
Step 2: Build the image
docker build -t <dockerusername>/<appname>:<versionnumber> .
Step 3: Push the image to docker registry (dockerhub)
docker push <dockerusername>/<appname>:<versionnumber>
Step 4: Run the one container (Nodejs) (This is optional)
docker run -p 3000:3000 <dockerusername>/<appname>:<versionnumber>
Step 5: Run the docker compose file
docker-compose up
Step 6: check your app and database
localhost:3000 - Nodejs app
localhost:8081 username: user password: pass -  mongodb/mongo-express

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published