mongoqp icon indicating copy to clipboard operation
mongoqp copied to clipboard

readme changes for docker

Open kamorahul opened this issue 7 years ago • 1 comments

readme contain the docker setup required

kamorahul avatar Jul 11 '17 09:07 kamorahul

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

kamorahul avatar Jul 12 '17 06:07 kamorahul