MongoDB for general usage
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 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.
@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?
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)
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.
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)
Nice suggestion @marcusquinn but it's not quite what I'm looking for this time around.
@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.