@sdetweil
I have used already exists mongo containers which is available in docker. By using pull command i used docker pull mongo
by using docker ps i am getting container id of mongo
Then I used docker inspect container-id (mongo container-id)
it is displaying ip address as 172.1.0.2 now what should give to connect my db.
and also I gave bindIp: 127.0.0.1,172.1.0.2 in mongod.config file
127.0.0.1 is mongodb default ip address.
172.1.0.2 is mongo container ip address
both ip address is not connecting the mongodb
showing mongodb connection error only.
mongodb_uri=“monogdb://172.1.0.2:27017/pmsdb”
mongodb_uri=“monogdb://127.0.0.1:27017/pmsdb”
both is showing error.
I dont know What mistake i am doing here. Please help me to sort out the problem of local db connection with docker application