Docker with - lakshmansha/ExpressChatApp Wiki

Original URL:

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