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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Accessing MongoDB using Compass

Accessing MongoDB using Compass

Scheduled Pinned Locked Moved Solved Support
mongodbcompasssshmongodigitalocean
8 Posts 5 Posters 1.7k Views 5 Watching
  • 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 Offline
    F Offline
    fritz
    wrote on last edited by
    #1

    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
    0
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      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
      0
      • M Offline
        M Offline
        MatiK
        wrote on last edited by
        #3

        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
        0
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          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
          0
          • philkunzP Offline
            philkunzP Offline
            philkunz
            wrote on last edited by
            #5

            @girish Is there any update on this? Also there is currently no way to inspect even simple things like storage usage for databases.

            1 Reply Last reply
            0
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #6

              @philkunz You should be able to connect . I couldn't get Compass (but go ahead and try) to work but Studio 3T works fine. See https://docs.cloudron.io/guides/connect-mongodb/

              1 Reply Last reply
              0
              • girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #7

                OK, I got compass to work. Updating the guide.

                1 Reply Last reply
                1
                • girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #8

                  Compass guide is here - https://docs.cloudron.io/guides/connect-mongodb/#mongodb-compass

                  1 Reply Last reply
                  1
                  • girishG girish has marked this topic as solved on
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Bookmarks
                  • Search