jmikola / mongoqp

A frontend for MongoDB's query profiler collection.
MIT License
170 stars 25 forks source link

readme changes for docker #22

Open kamorahul opened 7 years ago

kamorahul commented 7 years ago

readme contain the docker setup required

kamorahul commented 7 years ago

It's clear you're setting up port forwarding here. I'm not familiar with Docker's networking configuration, but is there any risk that the application within the container would have trouble connecting to a MongoDB server running outside of it (as is likely to be the case for most all users)?

Currently my Docker is running on IP 172.17.0.2 and my machine is on 192.168.1.67. my mongo is running on the host machine and I am able to connect to that. apart from this we can connect with any machine outside

Since the driver's default connection URI is "mongodb://127.0.0.1:27017", I'm wondering if that will look for a MongoDB server within the Docker container or outside the container on the host machine. If the default URI points to a server within the container, what URI should be used to connect to a server on the host machine? I don't think we need to change the defaults, but this might be something worth documenting if it's likely to be a common question.

we need to check the ip of host machine and have to provide it in URI is the best and easy option. changing readme for the same