News for hackers. Stuff that matters.
Re:Start Self Hosting by teekert on Wednesday March 23, 2022 @04:08PM (#30782705)
I love selfhosting. Right now I have this in my personal docker-compose.yaml: NextCould (3 installs, each their own MariaDB instance), HomeAssistant, Mosquitto, Vaultwarden, an Nginx served static website, Unifi controller, nzbget, Samba, librespeed, Wireguard, 4 MineCraft servers, AdGuard home, FoundryVTT and Traefik as reverse proxy for https (it's all 1 yaml file, everything! At least, excluding the HA config etc). All on a 16 GB RAM, corei3 based server. Home Assistant tells me it is consuming about 30 W right now (and generally stays between 30-35W). That's about 70 eur a year for multi-terabyte personal cloud, and docker-compose makes managing it very easy (docker-compose pull, docker-compose up -d). Over the past 2 years I had only one issue (I had to pin Mariadb to 10.5 or NextCloud complains).

Oh, the initial costs are of course quite high, including all disks I'd say about 1000 eur, so it's quite the hobby (I have a nice Fujitsu motherboard (3 y/o) and Fractal Design case (12 y/o), it saw 3 builds now, I started with a super cheap atom based board, then a Pentium dual core, and now the corei3 system that can handle a lot more disks, the nvme root drive makes it so fast.) I wonder about my next system. I also have a corei3 based Nuc (as htpc) and that thing is also very fast, silent and energy efficient. And it has nice and fast external I/O. Not sure yet, but my current system will last at least another 5 years.

My father has a Synology NAS and for some time I thought that would be my next system because I'd get tired of the associated sys-admin tasks at some point (I started with a Gentoo system and there were no containers, meaning you have to set up php-fpm, then mariadb, then download Next(Own)Cloud, then update it regularly, pff and the migrations to other systems...). But docker-compose really changed that for me, I think the Synology would be more work.

Btw, a nice podcast on Selfhosting where I got a lot of inspiration from: [0]

[0]: https://selfhosted.show

Re:Start Self Hosting by psYchotic on Wednesday March 23, 2022 @04:43PM (#30783095)
My hosting stack seems to be similar to yours. In addition to the services themselves, I run a watchtower container to check for new images for me, which then notifies me through yet another selfhosted solution: gotify. I have watchtower setup not to automatically recreate the containers (I've been bitten by postgres updates a few times too many).

Speaking of Wireguard: I've been looking for a web-based management interface to define Wireguard networks with (using the server it runs on as a sort of central "hun"), but haven't yet found anything I really like and/or found simple enough to use. What does your Wireguard setup look like?

Watchtower: https://github.com/containrrr/watchtower Gotify: https://github.com/gotify/server

Re:Start Self Hosting by teekert on Wednesday March 23, 2022 @04:46PM (#30783130)
I use this image: ghcr.io/linuxserver/wireguard [0]. Under environment I can set the number of peers and it simply spits out that number of peerX.conf files and QR-codes (as PNG), which I then manually set up on the different devices. Not really simple but also not complicated. I hear a lot of good things about tailscale and I feel like I have to start playing with that...

Oh, gotify looks really nice, I'm still looking for something like that. I'd love to be able to receive notification for events in my house (as detected by Home Assistant for example).

[0]: https://docs.linuxserver.io/images/docker-wireguard

Re:Start Self Hosting by buzzert on Wednesday March 23, 2022 @04:27PM (#30782908)
> Btw, a nice podcast on Selfhosting

Ironically, not self-hosted (served from fireside.fm).

Re:Start Self Hosting by teekert on Wednesday March 23, 2022 @04:39PM (#30783048)
In the podcast they talk a lot about when to self host. Sometimes it makes sense, sometimes it doesn't. For example this podcast's community is on Discord, but for their other podcasts they maintain a Matrix server. It's interesting to hear them talk about the joys and pains that both solutions bring.

I used to run an email server from my basement, now I also know that that is not something I want to self host anymore :)

Re:Start Self Hosting by buzzert on Wednesday March 23, 2022 @06:05PM (#30784099)
Ah yeah, I figured it was for a good reason. I just thought it was funny.
Re:Start Self Hosting by TomGullen on Thursday March 24, 2022 @03:51AM (#30787226)
How do you do your offsite backups?
Re:Start Self Hosting by teekert on Thursday March 24, 2022 @04:03AM (#30787282)
A Raspberry Pi 4 with a 2.5ā€ 5 TB drive at my parents house (Pi also runs their Home Assistant instance). I just manually rsync over ssh whenever I backup the pictures from our phones to the server every now and then. I’m lucky that most people here have 100/100 fiber I guess but I could do with less.