The Subtle Art of Self-Hosting


achievement

I've been trying to build a proper homelab for a long, long time.

That was almost a year ago, and while it "worked" back then, it never really stuck. Fast forward to today, and I finally decided to do it properly. This post documents the whole journey: what I bought, what I ran, and where it's all going.


Hardware

Raspberry Pi 4B

rpi

Bought this back in 2022, and for the longest time it was gathering dust in my drawer. About time I finally put it to good use. This will be the main machine hosting most of the stuff I'm mentioning here. I've plugged it directly into my router to ensure maximum internet speed.

Other


Software

OS

Apps

dotfiles

yt-local

copyparty

Tailscale

Tailscale is the backbone of this entire homelab. Without it, I'd be stuck port-forwarding everything on my router and exposing services I really don't want to. And even then, most Indian ISPs operate on CGNAT, which means port forwarding isn't even an option to begin with.

It's a mesh VPN built on WireGuard that just works. If you want to dig deeper, the how Tailscale works blog post does a great job of breaking down the architecture, and the MagicDNS docs cover how every device gets a human-readable hostname on the tailnet. Setup is dead simple: install the client, log in, done.

I like naming my devices, so:

At its core, Tailscale puts all of these on the same subnet, even though they're on completely different networks.

Cloudflare Tunnels

Like Tailscale, Cloudflare Tunnels doesn't care about CGNAT. The cloudflared daemon on Chiron makes outbound connections to Cloudflare's edge, so there's nothing to port-forward on either end.

I initially had my Jellyfin server exposed through the tunnel so I could stream from outside home. Turns out that's against their community standards, so I pulled it down.

cloudflare-tunnels

Now I'm just hosting a simple, private URL shortener that powers https://u.syswraith.com.

I manage the whole thing through the Cloudflare dashboard rather than copy-pasting configs around. It's more intuitive that way: click, add a public hostname, pick a service, done.

Syncthing

Continuous file sync between my devices, hosted by me. I didn't want to rely on nonfree cloud services for this, and Syncthing does exactly what I need without asking for an account. If you want a good overview, Mental Outlaw made a solid video on it:

https://www.youtube.com/watch?v=Uag8PJaO0N4 Right now it just keeps two folders in sync between Silena and Luke:

silena:///home/syswraith/Downloads <-> luke:///storage/emulated/0/Download

silena:///home/syswraith/Documents <-> luke:///storage/emulated/0/Documents

Chiron isn't part of this. The Pi is always on and hosting services, but my personal files don't need to live there.

On Android, the official app is unmaintained, so I'm using Syncthing-Fork instead. And since both devices are on my tailnet, Syncthing just works directly over the Tailscale network, no extra port forwarding, no discovery headaches.

syncthing

Docker

Most of what runs on Chiron is containerized. I wanted everything isolated so it wouldn't mess with the core system, and Docker Compose made that straightforward: define a stack in a YAML file, run one command, done.

I went with YAMS - Yet Another Media Server for the media stack. It was easy to set up and covers almost all of my use cases. The way it works:

The flow: Prowlarr manages the indexers, Radarr and Sonarr tell qBittorrent what to grab, Bazarr fills in the subtitles, and Jellyfin streams the final result.

To keep an eye on all of this, Portainer gives me a web UI to view and manage every container running on Chiron.

Oh, and the URL shortener powering https://u.syswraith.com is also a Docker container.


What's left?

Got a homelab of your own? Suggestions? Drop them somewhere I can find them. Now if you'll excuse me, Sonarr has a new season to download.