Docker with DB.md - lakshmansha/ExpressChatApp Wiki

Original URL: https://github.com/lakshmansha/ExpressChatApp/wiki/Docker-with-DB.md

Steps for Run API inside Container with DB as Container

Step 1:

Create an Network for Docker with below Command:


docker network create dockernet

Step 2:

Created Run the Mongo Container with mapping the created network using below Command:


docker pull mongo
docker run --network dockernet --network-alias mongo --name mongodb -p 27017:27017 -d mongo

Refered Links