Search code examples
mongodbcompose-dbmongodb-compass

Compose io cant connect to Mongo Compass


Using compose.io with a MongoDB it does have SSL. when copying the URI string i go into Compass and am prompted to fill in details from a string which I do, when trying to connect I get this error message.

Could not connect to MongoDB on the provided host and port

any idea why it cant connect? if I use a different provider like Atlas for the MongoDB and do the same steps it works fine, so I'm guessing maybe its a setting from compose.io? they said that it should just work which it's unfortunately not.


Solution

  • You may find your answer in this freshly published blog here https://www.compose.com/articles/how-to-connect-mongodb-compass-to-compose/

    It covers setting up SSL with the certificate provided.