News for hackers. Stuff that matters.
Re:Dokku: My favorite personal serverless platform by dewey on Monday August 26, 2024 @11:53AM (#41358438)
I was looking at many of these "selfhosted Heroku" type of solutions recently and read many HN discussions about the different options (coolify.io, ploi, ...) as I migrated to a new server and always copying, adapting nginx configs got a bit old.

I've landed on Dokku in the end as it's the one with the least amount of "magic" involved and even if I stopped using it I could just uninstall it and have everything still running. Can highly recommend it!

The developer is also super responsive and I even managed to build a custom plugin without knowing too much about it with some assistance. Documented this on my blog too: https://blog.notmyhostna.me/posts/deploying-docker-images-wi...

Re:Dokku: My favorite personal serverless platform by Balladeer on Monday August 26, 2024 @06:15PM (#41362784)
How long did it take you to go from "making a new server / copying configs is fine" to "this is tedious enough I'd like to abstract it?"

Like, was it a years-long journey or is this the type of thing that becomes immediately obvious once you start working w/ N servers or something?

I'm trying to learn the space between "physical machines in my apartment" and "cloud-native everything" and that's led me to the point where I'm happily using cloud-init to configure servers and running fun little docker compose systems on them.

Re:Dokku: My favorite personal serverless platform by abra0 on Monday August 26, 2024 @09:18PM (#41363789)
That's where I am too right now for personal projects, and I ended up reimplementing parts of Dokuploy for that, but I don't feel much of a need to move from "fun little docker compose" for some reason
Re:Dokku: My favorite personal serverless platform by duckmysick on Tuesday August 27, 2024 @03:04AM (#41365163)
For homelab (but not only) you can install Proxmox Virtual Environment on your physical machine. You end up with a way to create VMs and containers with a web UI. It supports cloud-init too. If you have a spare machine it's excellent for experimenting and learning.

https://www.proxmox.com/en/proxmox-virtual-environment/overv...

https://proxmox-helper-scripts.vercel.app/

Re:Dokku: My favorite personal serverless platform by dewey on Tuesday August 27, 2024 @04:08AM (#41365449)
I wanted to self-host more of my Rails projects and Dokku comes with nice Buildpack support so I can just push a generic Rails app and it'll run out of the box. That plus that I had to set up a new server after many years made me look into that more.
Re:Dokku: My favorite personal serverless platform by imtringued on Tuesday August 27, 2024 @06:27AM (#41366026)
cloud-init is good, but it assumes that you treat your VMs like containers and that means you will need a lot more VMs that you constantly create and destroy and you will have to deal with block storage for persistence.

If all you do is ssh into a system with docker compose installed, you will hardly benefit from cloud-init beyond the first boot.

Re:Dokku: My favorite personal serverless platform by lfkdev on Tuesday August 27, 2024 @05:36AM (#41365811)
What you are actually searching for is called ansible
Re:Dokku: My favorite personal serverless platform by dewey on Tuesday August 27, 2024 @06:01AM (#41365904)
That's pretty much the opposite of what I'm searching for. Getting a static site running with https on Dokku on a fresh server is done in under 2 minutes if you type quickly.

1) Run curl command to install Dokku

2) Set up domain to point to my server

3) Run 3 Dokku commands (https://news.ycombinator.com/item?id=41358578)

4) Add remote git url to my repository

5) Git push to that remote

6) Done

Re:Dokku: My favorite personal serverless platform by lfkdev on Wednesday August 28, 2024 @04:36AM (#41377339)
1) Install Ansible

2) Create a playbook which pulls from your GIT, sets the DNS and installs Caddy (or apache+certbot or whatever) (~5min)

3) Run Ansible

You now don't need docker, can change to any other cheaper hoster any time you want and you don't have the limitations of "serverless" services

Re:Dokku: My favorite personal serverless platform by fredoliveira on Wednesday August 28, 2024 @04:53AM (#41377454)
That reads like "draw a circle; draw the rest of the owl".

Look, I used Ansible for years. And chef. And puppet, so I've been around that particular block a bunch of times. There's no way you legitimately think that someone can, with no previous experience, create a playbook that does all you need in "~5min".

I ansible a good tool? Absolutely. Does it do what a tool like Dokku (or some of the others mentioned) do? Absolutely not. They aren't meant to compete, either.

Re:Dokku: My favorite personal serverless platform by hk__2 on Tuesday August 27, 2024 @06:17AM (#41365977)
That’s orthogonal; you can use Ansible with Dokku.
Re:Dokku: My favorite personal serverless platform by Sammi on Tuesday August 27, 2024 @06:15AM (#41365967)
I downvoted because you didn't qualify your statement.