Same here! I read the headline and thought "isn't that what Docker is used for?" As soon as i opened the article I saw the author and I had the same idea, even down to using ufw-docker. I have individual ports scripted to open with ufw-docker after docker-compose is run.
I know docker isn't the best tool for every task, but I very much enjoy how it allows me to treat my laptop and my cloud servers as almost identical machines and compartmentalize my services.
Re:Selfhosting on Localhost
by bluehatbrit on Tuesday July 05, 2022 @12:23PM
(#31990242)
Yep! Containers are really great for this kind of thing, it's so trivial to run basically anything as long as the configuration docs are reasonable. I use a single node k3s cluster on my lenovo box (for learning) and just straight up docker-compose on my localhost and dedicated because it's just so easy.
It's great fun and I enjoy having the control over the few things I run. It's also super conveniant when it's running locally because I don't really have to worry much about securing the service behind reverse proxies and all that. I can just hit it however I like with any ol script.
It's not for everyone, but it works for me.