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


Navigation

    Cloudron Forum

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

    MongoDB for general usage

    Discuss
    mongodb
    6
    7
    54
    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.
    • jamesgallagher
      jamesgallagher last edited by girish

      I was having a look at some of the previous questions/discussions around using the mongodb instance that Cloudron itself makes use of. My take away understanding is that there's no intention to expose that instance to end-users. Which I can appreciate.

      Having an instance I can access as an end-user came to mind recently. I've returned to my Cloudron instance with the intention of making better use of it: This has led to installing Metabase for a poke around and to access data I have in Atlas. In turn, I've then thought if I start to scale up my Atlas usage I need to start looking at cost and deciding if I should self-host mongodb. I can see why Cloudron wouldn't want to slot into the hosted DB type of role but interested in other folks views.

      marcusquinn 1 Reply Last reply Reply Quote 0
      • marcusquinn
        marcusquinn @jamesgallagher last edited by

        @jamesgallagher Have you tried the Directus app? Maybe I'm barking up the wrong tree but I like it a lot as a MySQL manager and GraphQL API.

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

          @jamesgallagher Welcome back 🙂

          For general usage, if you are looking to host an app that uses mongo, this is easy to do - https://docs.cloudron.io/custom-apps/tutorial/ . This way your app has access to mongodb. If you are looking to access the mongodb of an existing app, maybe you can use an ssh tunnel for this (for example, maybe you want to connect it to your IDE)? Something like https://forum.cloudron.io/topic/3237/remote-sql-support-on-a-per-app-basis/2 .

          The case which we aren't supporting right now is where you want to host an app outside Cloudron and provision a database inside Cloudron. This is almost like having a managed database. Is this the case what you are after?

          1 Reply Last reply Reply Quote 0
          • atrilahiji
            atrilahiji App Dev last edited by

            This does seem similar to my managed DB request, if thats what OP is asking. From a developer standpoint I like it but mostly because I want to be able to specifically host CouchDB (for those sweet sweet realtime connections to the DB)

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

              That raises maybe two options. One a mongodb app, with maybe some mongodb webui to manage the database freely without exposing the addon mongodb. The other option is the exposure of the addon mongodb instance, which I think would not be a good idea, plus in that case the user would not get full access to the database to configure it.

              1 Reply Last reply Reply Quote 0
              • jamesgallagher
                jamesgallagher last edited by

                Yes, I'm effectively looking for a managed DB on the cheap 🙂 (CouchDB may come onto my horizon too @atrilahiji - this is an area I'm getting into a bit more lately)

                I'll definitely look at your suggestion @girish and I like your lines of thought @nebulon

                Nice suggestion @marcusquinn but it's not quite what I'm looking for this time around.

                1 Reply Last reply Reply Quote 1
                • M
                  malvim last edited by

                  @jamesgallagher and @atrilahiji Yeah, I've run across maybe two or three apps recently that use PouchDB, which needs a public instance of CouchDB in order to sync their data. I have no idea if we should package CouchDB for cloudron as an app, but it sure seems like it could be useful.

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post