News for hackers. Stuff that matters.
Re:A guide for getting started with Self Hosting by smoldesu on Monday October 24, 2022 @12:33PM (#33318893)
If your OS fails to package nginx properly, it's probably time to find a new package manager/OS.

On a more serious note though, both technologies have their uses. Docker can be nice for ad-hoc hardware provisioning without needing to think about much, but I think the GP's comment is still relevant. For a lot of users who are completely unfamiliar with bash/Linux, Docker will be impossible to grok. For the average HN engineer sitting at their Mac, it makes a lot more sense to get nginx/apache from Brew and tinker with it natively.

Re:A guide for getting started with Self Hosting by monkmartinez on Monday October 24, 2022 @01:01PM (#33319268)
Why bother with nginx at all tho? Why take the chance of borking your ENTIRE system with software you aren't intimately familiar with? Dockerize that shit and move on. If you want to get into the weeds with some bare metal installs, have at it. There just isn't enough time for me to learn every sub-system in the entire software stack to be productive. I say, pick your poison and get after it!
Re:A guide for getting started with Self Hosting by smoldesu on Monday October 24, 2022 @01:16PM (#33319469)
For one, because Docker is a horrible experience for anyone that isn't running Linux. Bare metal installs are much better for tinkering and "getting started" than Docker is.
Re:A guide for getting started with Self Hosting by horsawlarway on Monday October 24, 2022 @02:14PM (#33320261)
You clearly don't understand what the poster is saying.

I'm not fucking interested in "tinkering" with nginx/apache to host my own software, I'm interested in herding dozens of open source applications that replace paid/shitty ad driven SaaS companies.

The contract with docker is incredibly simple - you give me the path you're saving data to, a couple of ports to point at, and some ENV vars to provide config - I do the rest.

Boom - suddenly I can easily host literally hundreds of dollars per month worth of recurring subscription SaaS products using my own hardware and networks. All without having to see ads, or risk external data breaches, or deal with user tracking.

Re:A guide for getting started with Self Hosting by smoldesu on Monday October 24, 2022 @02:27PM (#33320460)
You clearly don't understand what I'm saying. I like Docker, and use it every day. However, it's not the tool you use to learn how self-hosting works (or how your containerized software functions). Running the Dockerized version of a program turns it into a pushbutton component, which is both convenient and abstracts over anything interesting or worth learning. Docker is a compositional layer that only works effectively when you understand what it's doing inside the container.
Re:A guide for getting started with Self Hosting by horsawlarway on Monday October 24, 2022 @02:58PM (#33320835)
> Running the Dockerized version of a program turns it into a pushbutton component

Which is the point, when the goal is to self-host someone else's application.

If you're just interested in learning how networks work, or what http is, or how to write software - then sure, go tinker with apache or nginx.

If you're trying to self host, containers are great. They do exactly what you've said - applications become (mostly) pushbutton components where the contract is simple and clear (data/ports/env).

And yes - there certainly is a bit of a learning curve for containers, but I'd much rather learn containers once than have to learn the ins & outs of the 25 apps I self host. For the most part, I neither want nor care to learn how they were put together. There simply isn't enough time, and the value is low.

Again - the goal here is NOT to host a blog/website I've made. It's to self-host applications other folks have put together, and that seems to be where this reference can be valuable.