Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Unsolved Accessing MongoDB using Compass

    Support
    mongodb compass ssh mongo digitalocean
    4
    4
    188
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      fritz last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • nebulon
        nebulon Staff last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • M
          MatiK last edited by

          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?

          1 Reply Last reply Reply Quote 0
          • girish
            girish Staff last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB