Accessing MongoDB using Compass
-
Hi, I'm new to Cloudron(and web hosting in general) and I was wondering if there's a way to use Mongo's GUI tool Compass. I'm trying to connect with the DB via SSH tunneling without success. I'm hosting my Cloudron instance on Digitalocean, in case it's relevant.
-
Currently there is no supported way to connect to the MongoDB addon instance from the outside. Apps can only access it via the local network on the server itself. Can you describe you use-case a bit, so we can see if we should add such support? Thanks.
-
Hello
I have similar problem. I'd like to connect to mongo db service by ssh tunneling from server where I installed cloudron. I need this to perform some migrations of data between dbs so I need access to all dbs of cloudron apps using mongo. How can I get admin credentials for mongo? -
Admin credentials for mongo are really internal/implementation details. In general, do not make configuration changes to the mongodb instance because it may not work across all apps. This is the reason why all the databases are "locked" down and not exposed to users for easy access.
That warning said, you can do
docker inspect mongodb | grep CLOUDRON_MONGODB_ROOT_PASSWORD
to get the root password. -