this post was submitted on 08 Apr 2025
187 points (99.0% liked)

Selfhosted

46076 readers
664 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] jogai_san@lemmy.world 5 points 1 week ago (26 children)

If anyone got this running in docker for example, I like to hear from you ;)

[–] just_another_person@lemmy.world 3 points 1 week ago (24 children)

It's an electron app that runs from the browser. Why would need it to run via docker?

[–] 8osm3rka@lemmy.world -1 points 1 week ago* (last edited 1 week ago) (1 children)

~~An electron app still needs to be served by a web server, even if the actual business logic is all client-side~~

EDIT: Electron, not React...

[–] just_another_person@lemmy.world 1 points 1 week ago (2 children)

No? This is a client-side electron app. You'd need something to load the initial files, but that's it. There are no server-side running parts. Even still, there's links in the project here to load up the app right there. Each Major browser has ways to "install" such apps from there.

[–] 8osm3rka@lemmy.world 1 points 1 week ago

I had a brain fart and confused React with Electron...

[–] jogai_san@lemmy.world 1 points 1 week ago (1 children)

Well, I assume there is a backend which takes care of securely connecting to the databases. That way I can connect the backend to the internal network where I can connect to the database, and without exposing the database port still use this from the browser.

[–] just_another_person@lemmy.world 2 points 1 week ago (1 children)

Huh? This is a database client. There is no backend. You point it to a database, and it connects to the database. That's all it does.

I'm not sure what other backend you may be referring to, but it will use whatever network your desktop is using for comms.

[–] jogai_san@lemmy.world 1 points 1 week ago (1 children)

Are you sure? Because thats how dbgate works, and I thought this was similar.

[–] just_another_person@lemmy.world 1 points 1 week ago (1 children)

Yup. This is just a straightforward client. Unfamiliar with dbgate but just looked at the docs. It's also just a client as well. Unsure what other backend service you may have been referring to.

[–] jogai_san@lemmy.world 1 points 1 week ago* (last edited 1 week ago) (1 children)

It seems there is a misunderstanding. To be clear, this is what I mean:

┌───────────────────────┐    
│ Browser               │    
└───────────────────────┘    
     ▲                       
     │ port 443 open         
     │                       
     │                       
┌────┼──────────────────┐    
│ Proxy (traefik)       │    
└───────────────────────┘    
     ▲                       
     │                       
     │ web port open to proxy
     │                       
     │                       
┌────┼──────────────────┐    
│ DBgate (in docker)    │    
└───────────────────────┘    
     ▲                       
     │                       
     │                       
     │                       
┌────┼──────────────────┐    
│ Database              │    
└───────────────────────┘    

This way DBgate serves the web app to the browser, but also acts as a 'backend' which connects to the database. This way my databases are not exposed to the web, only the proxy is, which handles domain name routing and http traffic.

That's not how it works, or maybe the arrows are pointing the wrong direction in your ASCII. DBgate is an in-browser application in the same way that the other posted is, just with different features. They both run completely in the browser, BUT the files need to get loaded there first right? So the docker version of DBgate is simply starting a tiny web server that bootstraps the client application into your browser when you visit the local port. It's right in their docs.

No server-side code at all, and in fact, you can kill the docker container after you get it loaded in your browser if you want to double check 😉

load more comments (22 replies)
load more comments (23 replies)