CyCoreSystems / docker-meteor

Dockerfile and script for running Meteor on Docker
MIT License
120 stars 73 forks source link

Unable to connect mongo #23

Closed rwatts3 closed 7 years ago

rwatts3 commented 7 years ago

Greetings I am unable to connect to a self hosted mongo instance.

It seems the imsge is forcing me to use port 27017 I. The url when it true to rub the application. My instance of mongo does not contain a port. Its a direct url with the oath of the database.

Do you have any suggestions to get around this ?

Ulexus commented 7 years ago

I didn't know MongoDB had a UNIX socket connection method, but as long as Meteor can use that method, this image should support it. It makes no assumptions on MONGO_URL. Just set that to whatever the path should be, and you should be fine; so far as I am aware, that is the only method Meteor uses to determine how it should connect to the database.

avishaan commented 7 years ago

@rwatts3 your mongodb definitely has a port associated with it. Are you using docker to host your mongodb? are you using an entirely separate server? You should give us more details

rwatts3 commented 7 years ago

Separate server. With. Nginx proxy so my mongo port is not the default for security and infrastructure reasons.

On Fri, Sep 23, 2016, 2:33 PM Avishaan notifications@github.com wrote:

@rwatts3 https://github.com/rwatts3 your mongodb definitely has a port associated with it. Are you using docker to host your mongodb? are you using an entirely separate server? You should give us more details

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/CyCoreSystems/docker-meteor/issues/23#issuecomment-249307781, or mute the thread https://github.com/notifications/unsubscribe-auth/AFFsSYP64fgWdDgRGlNqZ4-NyiXd7cYyks5qtEWUgaJpZM4Jw4W_ .

avishaan commented 7 years ago

Makes sense, but I would assume it's still running on a specific port. You could enter your mongo shell if you have access to that and do https://docs.mongodb.com/manual/reference/command/getCmdLineOpts/

or maybe check via lsof

Ulexus commented 7 years ago

Closing this old issue; please reopen if it is still a problem.