Everything Runs Here

,

There’s an older Mac that runs most of the websites and services my family uses. It has no monitor attached, it’s on all the time, and it does the job a small stack of servers would have done. This post is a record of what’s on it, written for someone who doesn’t work in IT.

What a Homelab Is

A “homelab” is a computer you own that runs services for you, instead of renting them from someone else the marketing term they like to use is the cloud.

A service, in this context, is just a program that waits for a request and answers it. A website is a service. So is a media server: a program that waits for “show me this movie” and sends back the video. So is a file server, or a program that keeps a domain name pointed at your house.

The reasons people do this are usually some mix of: not wanting a monthly subscription for everything, wanting their photos and files on their own disks, wanting to learn how it works, and liking the idea that when a company changes its terms, nothing of theirs breaks.

The Machine

It’s an M1 Max Mac Studio: 64 GB of memory, a 1 TB internal drive, and a wired Ethernet connection. It sits on a shelf with no screen or keyboard, and it runs continuously.

I chose a Mac because it was already here, it’s silent, and it uses very little electricity compared to a server with fans. Underneath the desktop interface it’s a Unix machine, which is what most internet servers run anyway.

Why Everything Runs in Containers

If you install a program directly on a server, it shares one set of libraries with everything else installed there. Install enough programs and eventually two of them need different versions of the same library, and one breaks. Then upgrading one program breaks another. This is a real and famously annoying problem.

Containers solve it by giving each program its own sealed box, with its own copy of everything it needs inside. The program can’t see or interfere with the others. If a box gets corrupted, you delete it and build a new one from its recipe; you don’t repair it.

The industry standard tool for building and running these boxes is Docker. A “container” is one running box, and a “stack” is a group of boxes that work together — for example, a website box and its database box.

The recipe for a stack lives in a small text file called a compose file. It lists the boxes, the settings, the network ports, and where each box keeps its data. It’s the whole story of a service in a few dozen lines, which is why it’s worth keeping in a safe place.

OrbStack

On Linux, Docker runs directly. On macOS it can’t, because the Mac’s security model doesn’t allow that kind of low-level access. So Docker on a Mac runs inside a small, invisible Linux virtual machine, and a helper application manages it.

Docker Desktop is the official helper. OrbStack is an alternative that starts faster, uses less memory, and — the part that mattered to me — makes folders on the Mac readable inside the containers much more quickly.

That last point is not academic. My two websites keep their files in ordinary folders on the Mac’s drive, and every page load reads from them. With a slow file bridge, the sites feel sluggish. OrbStack makes that path fast enough that nobody notices there’s a virtual machine in the middle.

Each stack on my machine lives in its own directory, with the compose file and that stack’s data side by side:

/Users/studio/documents/
├── docker-projects/
│   ├── addspice-wp/     recipe + WordPress files
│   ├── fairhaven-wp/    recipe + WordPress files
│   ├── gitea/           recipe + git repositories
│   ├── npm/             recipe + proxy settings and certificates
│   └── ...
└── homelab-documentation/

One directory per service means one directory is the whole story. Copy it somewhere else and you can rebuild the service from it.

What Actually Runs on It

Eleven containers, plus two programs running directly on the Mac.

ServiceWhat it is
Two WordPress sitesThe blogging software that runs addspice.net and a church website. Each has its own database container behind it
JellyfinA media server. It catalogues videos and films on my disks and streams them to the TV, phones and tablets in the house
Open WebUIA chat interface for AI models — the same idea as a commercial chatbot, but running on my own hardware
OllamaThe program that actually runs those AI models locally
GiteaA private version of GitHub. It stores the history of my documentation
Nginx Proxy ManagerThe front door for one website. It handles encryption and decides which service a request belongs to
ddns-goKeeps one domain name pointed at my house, even though my internet provider changes my address occasionally
TracefinityPhotograph your tools, let AI trace their outlines, and generate 3D-printable Gridfinity bins that fit them perfectly.
OpenSpeedTestA speed test you run in a browser
A static siteA small, simple website served by a web server called Nginx or Apache

Only the two WordPress sites are genuinely open to the public internet. Everything else is either limited to my home network or reachable only by my own devices from anywhere.

How Traffic Gets In

Three different paths, and the separation is deliberate.

Cloudflare Tunnel handles the two public websites. Cloudflare is a large company that sits in front of a huge portion of the internet, providing security and speed. Normally, hosting a website at home means opening a port on your router so the internet can reach in — which is also how attackers reach in.

A tunnel inverts that. The Mac makes an outbound connection to Cloudflare, to a server that already has an address, and keeps it open. When someone visits the site, Cloudflare sends the request down that existing connection. It’s the difference between leaving your front door unlocked and phoning a delivery company to say “I’ll hold the line, tell me what you need.”

A port forward plus Nginx Proxy Manager handles the media server. Nginx Proxy Manager is a reverse proxy: a single front door that reads which address a request asked for and forwards it to the right service inside the building. This is the traditional approach: one specific numbered door on the router is pointed at the Mac, and only port 443 — the standard port for encrypted web traffic — is open. Nginx Proxy Manager answers on that door, proves the site’s identity with a certificate (the padlock in your browser), decrypts the request, and passes it to Jellyfin on an internal port.

That’s one open door in total, for one service.

Tailscale handles everything private: the admin panels, remote access to the machine itself, the git server, and my monitoring dashboard. Tailscale builds a private network between devices you own — laptop, phone, the Mac — that works from anywhere, as if they were on the same cable. Traffic is encrypted end to end, and the devices find each other through Tailscale’s coordination servers without exposing anything to the open internet.

I run it “inbound only,” which is a deliberate setting: other devices can reach the Mac, but the Mac isn’t published to the internet at all. Admin panels that would be reckless to expose — the kind with a login page and a default password — are simply not reachable from outside my own devices.

The rule I follow is simple: if a service doesn’t need to be public, it doesn’t get a door.

Storage

Video files don’t fit on a 1 TB drive, and they don’t belong there anyway. They live on a NAS — network attached storage — which is a separate box full of disks that plugs into the network. Mine holds 36 TB.

The Mac talks to it using SMB, the standard file-sharing protocol that macOS and Windows both speak. When it’s connected, the share appears as an ordinary folder at /Volumes/Media_Server, and Jellyfin reads from it as if it were a local drive.

The connection is kept alive by a small app called AutoMounter, which watches for the share and reconnects it if it drops. Without it, a brief network hiccup leaves the folder pointing at nothing, and the media server looks broken until someone remounts it by hand.

That’s the one fragile dependency in the whole setup. If the NAS is asleep or unreachable, anything that touches that folder can hang for a while before giving up.

Backups, and the Mistake Worth Passing On

Two layers: Time Machine, which is built into macOS and copies the whole machine to a disk, and Carbon Copy Cloner, which copies the Mac to the NAS.

The mistake is worth explaining, because it’s invisible until the day you need it.

Containers can store their data in two different ways. A named volume is storage that Docker manages internally, inside that hidden virtual machine. It works perfectly, and the service never complains. But because it lives inside the container system’s own virtual disk rather than on a normal folder, a file-level backup simply walks past it. Nothing errors. Nothing warns you. The backup reports success.

The fix is a bind mount: instead of letting Docker keep the data in its private storage, you point the container at an ordinary folder on the real disk.

volumes:
  - /Users/studio/documents/docker-projects/gitea/gitea-data:/data

Now the data sits somewhere a backup tool can see, and the backup is what you thought it was.

I checked it by pushing a real change to the git server afterwards and confirming it worked — not by assuming, because the failure mode here is silent. If you run containers with anything you’d be sad to lose, look at where the data actually is.

Documentation

Every service on that machine is written up in a notes app called Obsidian. The notes are plain text files in a folder, which means they’ll still open in twenty years, in any app, with no account required.

That folder is a git repository. Git is the system programmers use to record the history of files: each time you save a set of changes, it stores a snapshot with a short message describing why. You can compare any two points in time, see who changed what, and undo a mistake completely.

The repository is hosted by Gitea, a private version of GitHub that also runs on the Mac. Two machines — the Studio and my laptop — push changes to it, so editing notes on either one ends up in the same history.

Before this, the notes were a folder that got copied between machines. A copy has no memory: no diffs, no record of why something changed, no way back. If you edit a note badly, the previous version is simply gone.

A copy is not a backup, and a mirror is not version control.

Things I’d Tell Someone Starting

  • Put container data on a bind mount, not a named volume. Otherwise your backups are quietly missing the only copy that matters.
  • Keep admin interfaces off the internet entirely, even the ones behind a password. A private network like Tailscale is easier to set up than people expect.
  • Write it down while you build it. You will not remember why a service uses port 3001 instead of 3000 in six months, and the answer will be three hours of work to rediscover.
  • One machine goes a long way. Most home setups don’t need a rack; they need one computer that stays on.
  • Check whether a site is really down before restarting anything. Testing from inside your own network can fail for reasons that have nothing to do with the service. More than once, the “outage” was my own test being wrong.

What’s Left

Three things I still intend to fix. The security certificates renew automatically, but nothing alerts me if that ever stops working — a silent failure that would break HTTPS at the worst time. One site fails for visitors who type the address without https://, because the unencrypted port was never opened and forwarding it is still on the list. And the git web interface still runs unencrypted, which is harmless on a private network but not tidy.

A homelab is never finished. The useful part isn’t the finishing — it’s that you understand every piece, because you put it there.


Discover more from AddSpice

Subscribe to get the latest posts sent to your email.