Live data from Hacker News

How to Setup Your Own PaaS with Dokku and Node and React and Mongodb and Nginx

albertgao.xyz

11–20 of 32 posts

Re: How to Setup Your Own PaaS with Dokku and Node and React and Mongodb and Nginx

#11
post #2

Dokku seems like a good tool with good developper experience, equivalent to Heroku. It would allow you to quickly experiment. Want to setup a new web app / service ? Heroku-like simplicity, just some clicks and a git push. Anyone who has tried dokku's postgres database solution ? Where to store state is IMO the big missing piece from these Paas tools. They solve the stateless compute part nicely (with Flynn you can e…

I've been running it for a couple of years now, and it basically just works. Don't expect too much out of it, though: it's basically just a small but very convenient wrapper around Docker.

If you need replication, failover, automatic backups, scaling, or something of that order, Dokku is probably not what you're looking for. If you just have an app with a handful of users, it's absolutely amazing.

I looked into Flynn as well, but it seemed way too complicated for my use case: it's a bit overkill to spin up three machines when there's probably only one user at a time and it's idle all but 5 minutes a day.

Re: How to Setup Your Own PaaS with Dokku and Node and React and Mongodb and Nginx

#13
post #11
post #2

Dokku seems like a good tool with good developper experience, equivalent to Heroku. It would allow you to quickly experiment. Want to setup a new web app / service ? Heroku-like simplicity, just some clicks and a git push. Anyone who has tried dokku's postgres database solution ? Where to store state is IMO the big missing piece from these Paas tools. They solve the stateless compute part nicely (with Flynn you can e…

I've been running it for a couple of years now, and it basically just works. Don't expect too much out of it, though: it's basically just a small but very convenient wrapper around Docker. If you need replication, failover, automatic backups, scaling, or something of that order, Dokku is probably not what you're looking for. If you just have an app with a handful of users, it's absolutely amazing. I looked into Flynn…

Flynn can be run in single computer mode or any multiple of N+1. The issue with running single computer mode on Flynn is that if the Flynn core modules become unstable (most likely due to lack of RAM), you'll probably need to wait for self healing. In multi computer mode, you can basically kill 2 of the computers and still be functional.

Their standard mode prioritizes your apps over their management layer so if you happen to deploy an app that eats up all the RAM, expect to hard reboot that host in order to get the management layer back.

Re: How to Setup Your Own PaaS with Dokku and Node and React and Mongodb and Nginx

#14
post #2

Dokku seems like a good tool with good developper experience, equivalent to Heroku. It would allow you to quickly experiment. Want to setup a new web app / service ? Heroku-like simplicity, just some clicks and a git push. Anyone who has tried dokku's postgres database solution ? Where to store state is IMO the big missing piece from these Paas tools. They solve the stateless compute part nicely (with Flynn you can e…

We've been running a Dokku instance on a single node with PostgreSQL on the same host without any issues for years. It's been pretty solid for us.

Right, but that's not a HA/continuous backup solution for the state (PostgreSQL db), so if the machine fails, you lose the database, and all the data since the last backup.

What I'd love is something Dokku-like in simplicity for setting up HA/master-slave postgreSQL. A tool that I just install on two servers and it does everything needed for HA such as replicate continuously.

Even without the HA, just continuous replication, this would be a great complement to Dokku.

Re: How to Setup Your Own PaaS with Dokku and Node and React and Mongodb and Nginx

#16
I recently found out that I could get a 2 GB / 2 Core machine for ~ $15/yr - and my plan is to buy a bunch of them (~ 150 - 200) to make my own cluster for my personal needs, learning and running some stuff I charge $ for.

One thing they didn't mention was specifically MongoDB management - Backing up, restore etc.

Personally I was planning on using Nomad (or K8S if I could get into the GCP K8S Engine Hybrid Cloud Preview) to manage my clusters.

Re: How to Setup Your Own PaaS with Dokku and Node and React and Mongodb and Nginx

#17
post #3

I would like to use Dokku and not have to worry about the underlying software maintenance. Are there any companies offering Dokku as PaaS?

NodeChef does not use Dokku under the hood but you can achieve what you want and more with the platform. https://www.nodechef.com/

Re: How to Setup Your Own PaaS with Dokku and Node and React and Mongodb and Nginx

#18
post #8
post #3

I would like to use Dokku and not have to worry about the underlying software maintenance. Are there any companies offering Dokku as PaaS?

...Heroku?

digitalocean.com also has a "marketplace" of many preconfigured droplets (VPS), including "Dokku 0.12.13 on 18.04)

Re: How to Setup Your Own PaaS with Dokku and Node and React and Mongodb and Nginx

#19
post #14

Earlier quoted context omitted.

We've been running a Dokku instance on a single node with PostgreSQL on the same host without any issues for years. It's been pretty solid for us.

Right, but that's not a HA/continuous backup solution for the state (PostgreSQL db), so if the machine fails, you lose the database, and all the data since the last backup. What I'd love is something Dokku-like in simplicity for setting up HA/master-slave postgreSQL. A tool that I just install on two servers and it does everything needed for HA such as replicate continuously. Even without the HA, just continuous repl…

I'm a heavy dokku user and I would love the same thing. Just simple replication to another machine in case of failure. A load balancer in front of them would be great for HA but I'd settle for manual fail-over as long as real-time data replication was as simple as dokku makes everything else.

Re: How to Setup Your Own PaaS with Dokku and Node and React and Mongodb and Nginx

#20
post #16

I recently found out that I could get a 2 GB / 2 Core machine for ~ $15/yr - and my plan is to buy a bunch of them (~ 150 - 200) to make my own cluster for my personal needs, learning and running some stuff I charge $ for. One thing they didn't mention was specifically MongoDB management - Backing up, restore etc. Personally I was planning on using Nomad (or K8S if I could get into the GCP K8S Engine Hybrid Cloud Pre…

Where can you get that?
Post reply on HN