Live data from Hacker News

Self-Hosting Dozens of Web Applications and Services on a Single Server

cprimozic.net

231–240 of 285 posts

Re: Self-Hosting Dozens of Web Applications and Services on a Single Server

#231
post #228

Earlier quoted context omitted.

This is _very_ close to my exact setup. Though, I never used portainer (just manage a big docker-compose file) is it worth it?

I also put everything in docker containers, and docker-compose for each thing is a must. It usually pains me to see when popular projects have no decent docker-compose files available and I have to make them. For backups restic is a blessing. And so is Syncthing for getting things to the backup machine quickly (from mobile and non-unix machines).

> I also put everything in docker containers, and docker-compose for each thing is a must. It usually pains me to see when popular projects have no decent docker-compose files available and I have to make them.

On the bright side, it's a one-time cost and generally pretty simple, especially if they provide a sample `docker run` command. (Although yes, it would of course be better yet if projects would publish one so that it was easier)

Re: Self-Hosting Dozens of Web Applications and Services on a Single Server

#232
post #217

Earlier quoted context omitted.

My clients do / pay for whatever the audits are required in their line of business. I do not get involved unless told to do some particular things. >" but I still find it hard to trust everyone who DIY" It depends on what is the actual DIY part is. In any way it is your problem. Not mine. Sorry to say but to me your whole post feels like typical FUD scaremongering client to cloud. >"While you still need to do all thi…

I just think all those features are necessary for any serious usage and it’s costly to build all on your own. But perhaps you are right since it fit your business model - you seems not interested in building a platform at all

>"you seems not interested in building a platform at all"

I build products. That is my primary output. And the actual delivery is a binary executable that does the job. And it does it with the stellar performance that makes all that horizontal scaling infra totally unneeded. I serve the needs of my clients, not the needs of Amazon.

Re: Self-Hosting Dozens of Web Applications and Services on a Single Server

#233
post #87
post #51

Earlier quoted context omitted.

As someone running something similar, I thought it was quite easy when I first set it up: I used the similar setup of a friend as a baseline to get through the configuration. It took about 1 hour to setup the base things to have the infrastructure running. It sounds more complicated than it is.

I always hear about the easy setups, but never about total (man-hours included) cost of ownership through a couple release cycles on each component.

I have been running my own personal servers in a similar setup for the last 10 years. Have turned on automatic updates, including automatic reboot, and everything runs in docker (using docker-compose).

I can not remember a single time something bad or unexpected happened. Only the planned things - upgrading the distro every couple of years, and updating major versions of the things running in containers probably once a year or two. And maybe sometimes some unplanned updates if particularly bad vulnerability gets disclosed in a popular software/library. I am pretty sure I don't spend more than a few days per year to manage it.

If I had opted for a cloud vendor managed alternative, it would have been so much more expensive. I have definitely saved thousands or tens of thousands over the last 10 years.

But then again, I know how to manage it and I planned it out so it would not cause too much trouble for me. Prior to this setup I endured many painful moments and that "wasted time" allowed me to think of a better way to manage it and avoid certain problems along the way. Also available tooling has improved a lot.

Then again - this is for my personal projects and I would do it somewhat differently for large projects.

Re: Self-Hosting Dozens of Web Applications and Services on a Single Server

#234

Earlier quoted context omitted.

easy ? Is this sarcasm?

Not easy to set up. But perhaps easy to maintain

If you compare it to an out of the box service from cloud vendor, then yes, it does take a bit more time, but not that much more time.

For long running projects it is certainly worth to invest into proper setup. It really is a lot cheaper in the long run.

Re: Self-Hosting Dozens of Web Applications and Services on a Single Server

#235

Is there a reason people don’t self-host on a small home server? $85/mo is a lot of money if you aren’t making any money off what you’re hosting. If you mostly run CRUD APIs and sites, is there any downside to a low bandwidth home connection? Multiple family members already stream Plex content from my measly 20mbit upstream. Why not run a whole site or multiples?

You could. If I did it then I would most likely go with Cloudflare Tunnel( https://blog.cloudflare.com/tunnel-for-everyone/ ) which is free to use. Since I would want to try to protect myself from a possible DDoS attack.

But using that then I think it would be more than feasible to do it from your home network if you have a fast enough upload link.

Re: Self-Hosting Dozens of Web Applications and Services on a Single Server

#236
post #84

Earlier quoted context omitted.

A few months ago, I made an offer of $100 in one of the freelancing websites, for someone to set-up something like your configuration on one of my Digital Ocean instances. I asked for a few more apps to be installed (git, svn, etc). There were no takers :-) I think a web site/service which lets you choose "apps" and spawns a VPS instance would be very useful and profitable (Think "ninite for VPS"). I started to work…

You can choose apps and spawn a VPS on DO already.

But can you install multiple apps on one instance?

Re: Self-Hosting Dozens of Web Applications and Services on a Single Server

#237

I can remember back in the dotcom boom I had Windows small biz server, Exchange, our phone system and hosting about 3 dozen websites on a single server in our breakroom. We ran like that for about 2 years with really no issues other than the occasional bandwidth issue...

The new windows 2022 vnext with azure arc is pretty good, RDP is so much better than VNC. Also wamp is so much faster on windows than on linux in my experience on tuning php/python/mysql/postgres stuff. Windows and its shared memory connection to DB on the same machine bypasses pipes, which is where most of the slowdown comes i think

Re: Self-Hosting Dozens of Web Applications and Services on a Single Server

#238

Earlier quoted context omitted.

Seems like https://sandstorm.io/ could be what you are looking for.

Probably not, sandstorm is abandoned, most softwares are broken and unmaintained, gitlab version is from 2016 and full of vulnerabilities, same for WordPress version from 2018. Project is dead. I think the guy behind the project was hired by Cloudflare few years ago

I know that there was some work on reviving sandstorm after Kenton Varda joined Cloudflare, see e.g. https://sandstorm.io/news/2020-02-03-reviving-sandstorm, but it is very possible it never got anywhere. Sad but understandable.

Re: Self-Hosting Dozens of Web Applications and Services on a Single Server

#239
post #13

Easy setup with: - traefik (nginx proxy with auto letscencrypt) - portainer (docker container management) - fail2ban (basic security) - logwatch (server / security stats by mail) - munin (server stats) - restic (cloud backup) - unattended-upgrades (auto install security updates) - apticron (weekly info) - n8n (automatisation for e.g. quick info via telegram, if something not work) Run every app that you want in your…

How do you deal with backing up the data/“disaster” recovery? (I out disaster in quotes because we’re talking a about home servers so not mission critical data but still pretty annoying to lose.

Re: Self-Hosting Dozens of Web Applications and Services on a Single Server

#240
post #13

Easy setup with: - traefik (nginx proxy with auto letscencrypt) - portainer (docker container management) - fail2ban (basic security) - logwatch (server / security stats by mail) - munin (server stats) - restic (cloud backup) - unattended-upgrades (auto install security updates) - apticron (weekly info) - n8n (automatisation for e.g. quick info via telegram, if something not work) Run every app that you want in your…

Love this, I have a similar setup but had never heard of fail2ban or logwatch. Looking forward to checking these out

CrowdSec may interest you.

https://crowdsec.net/

(No affiliation)

Post reply on HN