Install mongodb
, mongosh
, add it in the path in environment variables.
mongod --dbpath C:\ProgramData\MongoDB\data\db
use todoapp
db.createUser({user: "todo", pwd: "todo", roles: ["readWrite"]})
docker build -t todo-app-ui .
docker run -d -it -p 80:80/tcp todo-app-ui
You can access the app using localhost:80
docker build -t todo-app-api .
docker run -d -it -p 3000:3000/tcp todo-app-api
docker build -t krishnathota/todo-app-ui:0-alpha-1 .
docker build -t krishnathota/todo-app-api:0-alpha-1 .
docker run 2717:27017 -v ~/todo-app-db:/data/db --name todo-app-mongodb mongo:latest