stretch.codes
ByAndrew McCallum

What I Run on My Home Server, and Why

Seven Docker containers on a Mac mini at home: what each one is for, and why it's worth running yourself

October 21, 2026

"Cool, but what do you actually use it for?" is the obvious question when someone mentions a home server. This post is my answer: what's running, what each thing is for, and why I bother running it myself.

Why have a home server at all

It started with wanting a media centre. That means running Plex at home, next to the media, and that's not something you can pay a service to do for you. I already had a Mac mini, an M2 that uses a few watts when it's idle and is still quick when something needs the power, so it became the server.

Once you have a machine that's always on, other things start to make sense on it too. Each of the things below is either something I'd otherwise pay for, something no service offers, or something that's simply better when you control it. Privacy, cost, control and learning all come into it.

Everything except Plex runs as one Docker Compose stack. On a Mac, Docker always runs inside a Linux virtual machine, and I use OrbStack for that rather than Docker Desktop. It's a drop-in replacement, with the same docker command and the same Compose file, but its VM is lighter and hands memory back to macOS when it isn't using it. On a machine with 8 GB that matters: once Docker Desktop was gone, swap use went from nearly 2 GB to zero.

1. AdGuard Home: ad blocking on every device

What it's for: blocking ads and trackers on everything, not just in a browser.

AdGuard Home is a DNS server that refuses to look up ad and tracker domains. Because it works at the DNS level, it covers apps, smart TVs and phones, which browser extensions can't. Everything else it passes on to Quad9 and Cloudflare over DNS-over-HTTPS, which encrypts the lookups the same way HTTPS encrypts web traffic.

The part that makes it really useful is making it the DNS server for my Tailscale network rather than my router. Then my phone gets ad blocking on mobile data, not just on home Wi-Fi.

I'd also planned to use it for private DNS records, to give my services nicer names. In the end there was a better way to do that, which is the next item.

2. Traefik: proper names and HTTPS for everything

What it's for: opening my apps at https://<app>.home.stretch.codes instead of remembering an IP address and a port for each one.

Traefik is a reverse proxy, so it receives every request and sends it to the right container based on the name. It also handles HTTPS with a real Let's Encrypt certificate and renews it by itself. The upshot is that I bookmark names instead of 192.168.x.y:8989, the browser stops warning about insecure pages, and phone apps that insist on HTTPS just work.

The clever bit is that none of it is on the internet. The names point at the server's private Tailscale address, so only my own devices can reach them. I wrote up how that fits together in Public Names, Private Servers.

3. CouchDB: Obsidian sync without paying for it

What it's for: syncing my Obsidian notes between desktop and phone.

Obsidian sells a sync service, but I already had a machine that's always on, so paying for one made less sense. The Self-hosted LiveSync plugin syncs through a CouchDB database instead, in near real time. Notes are end-to-end encrypted before they leave each device, so the server only ever stores ciphertext.

4. Garmin MCP: letting Claude read my Garmin data

What it's for: giving Claude access to my Garmin data, so it can read my runs, sleep and health data and put workouts on my watch.

MCP is how AI assistants like Claude connect to other services. Garmin doesn't offer one, so I run garmin-mcp, an open-source MCP server for Garmin Connect. Running it in the cloud doesn't work either, because Garmin blocks sign-ins from datacenter IP addresses. A home connection is exactly what it needs, which made the home server the obvious place for it.

It's one of the few things I run that has to be public, because Claude's servers make the connection rather than my own devices. It sits behind Google sign-in, and the Garmin login never leaves the server.

5. openGym: a gym tracker on my own server

What it's for: logging gym sessions and tracking progress, with the data on my own server.

openGym is an open-source gym and body-weight tracker: routines, workout logging, progress and muscle recovery. The self-hosted version keeps everything on the server and syncs across devices. On a phone, you add the web app to the home screen and it behaves like any other app. openGym also has an Android app, but that one keeps its data on the phone and never syncs with a server, so the web version is the one to use.

It slots into the rest of the setup neatly. Sign-in uses passkeys, which only work over HTTPS on a real domain, and Traefik already provides that at opengym.home.stretch.codes. It also pairs well with Garmin MCP: Garmin covers runs and health data, and openGym covers time in the gym. It even comes with its own MCP server for Claude, which I haven't set up yet.

Worth knowing if you add it to an existing stack: its own Compose file loads every setting from your .env file. If that file also holds other services' secrets, as mine does, they'd all end up inside openGym's container. None of its settings are secret, so set them directly in the Compose file instead.

6. Tailscale: reaching it all without exposing it

What it's for: using everything from anywhere, without opening it up to the internet.

Tailscale is installed on the server itself, so my devices can reach it from anywhere as if they were at home. That's how I watch Plex away from home without exposing Plex to the internet, and how my deployments connect (more on that below). It's also what keeps the rest private: none of these apps is exposed to the internet.

For the couple of services that do need to be public, like Garmin MCP, I also run Tailscale as a container. Each one gets its own small Tailscale container that joins the network as a separate machine and publishes just that one service with Tailscale Funnel. Those containers are locked down so they can't reach anything else, so even if a public service were compromised, it would have nowhere to go.

7. Autoheal: things fix themselves

What it's for: not having to restart things by hand.

Docker can mark a container "unhealthy", but it doesn't do anything about it. Autoheal watches for unhealthy containers and restarts them. The point is that the server recovers on its own after a hiccup, instead of something quietly staying broken until I notice. That matters for a server that runs on its own.

How changes get deployed

Everything is defined in a git repo, and pushing to main deploys it. That means nothing on the server needs changing by hand, every change is reviewable, and the whole setup could be rebuilt from the repo.

The pipeline is careful about how it gets in:

  • No stored Tailscale secret. GitHub Actions joins my Tailscale network using OIDC, as a temporary machine that can only reach the server, and leaves when the job ends.
  • A key that can only deploy. Its SSH key is only accepted from Tailscale addresses and can only run one script on the server. It can't open a shell.
  • Checks before and after. The deploy refuses to start if something's missing, like the media drive not being mounted. Afterwards, it only reports success once each service has proved it's working.

There's enough in that pipeline for its own post, so I'll cover it properly in a follow-up.

Wrapping up

Plex was the reason to start, and everything since has come from having the machine anyway: ads blocked everywhere, notes synced without a subscription, Claude reading my Garmin data, gym sessions logged to my own server, and none of it exposed to the internet. Once one thing gives you a reason to run a home server, the rest tends to follow.