Got a spare Mac mini, or thinking about buying one? It is small, near-silent, and idles at around 4 watts, which makes it a surprisingly good home server. This guide covers the whole setup: keeping it online around the clock, choosing what to run on it, making services start on boot, reaching it safely from outside, and backing it up.
Why a Mac mini works as a home server
The biggest advantage is that you can set it up and forget about it. Apple lists the M4 Mac mini at about 4 W idle, so the electricity it uses over a year is negligible. There is no fan noise to live with, and it is small enough to sit next to your router. Apple Silicon is efficient enough to handle media transcoding and photo processing without breaking a sweat.
macOS also ships with much of what a home server needs built in: file sharing, a Time Machine backup destination, SSH remote login, and Screen Sharing. You can get started without installing anything extra.
There are real limits to know about first:
- Memory and storage are fixed at purchase. You cannot add more later, so choose enough up front.
- There are no internal drive bays. Large media libraries live on external drives, and a multi-terabyte collection with redundancy is still a job for a proper NAS.
- Docker on macOS runs inside a Linux virtual machine. Containers take a slice of RAM for the VM, so a 16 GB machine gets tight if you run too many heavy services at once.
For a handful of light services — a media library, photo backup, a smart-home hub, a personal cloud drive — a Mac mini is more than enough.
First, make it stay on
A server’s first job is to be there. Apple’s own Mac mini server checklist covers the settings that matter:
- Stop it sleeping. Open System Settings → Energy and turn on “Prevent automatic sleeping when the display is off” and “Wake for network access”. A sleeping Mac answers nothing.
- Restart after a power cut. On the same page, set “Start up when power is connected” so the machine comes back on its own after an outage.
- Turn on Remote Login and Screen Sharing. Go to System Settings → General → Sharing and enable both. From then on you can manage the machine from another computer with no monitor attached.
- Turn on the firewall. Go to System Settings → Network → Firewall. macOS asks once when each service first accepts connections.
- Give it a fixed local address. Reserve an address for it in your router, or set one manually under System Settings → Network → Details → TCP/IP. If the address keeps changing, nothing else on your network can reliably find it.
- Think twice about FileVault. With FileVault on, the Mac stops at the login window after every restart until someone types a password. That defeats the point of an unattended server, so most home servers run without it.
- Don’t auto-install major updates. Security updates can go on automatically, but a major macOS upgrade reboots the machine and interrupts whatever is running. Pick your own time for those.
Once those are set, you have a machine that stays up. Apple’s short official guide is worth a read: Set up your Mac mini as a server.
What to run: native apps or containers
Services fall into two groups. Native macOS apps such as Plex Media Server run directly on the machine and use VideoToolbox for hardware transcoding on Apple Silicon — a base Mac mini can transcode several 4K streams at once. macOS file sharing and Time Machine are native too. The second group is containerized services, which is where most self-hosting happens.
On a Mac rented from Tokyo Mac, you don’t need Homebrew or an administrator password for Docker Desktop or OrbStack: open My Macs → Install apps on the website, tick Docker Desktop or the lighter OrbStack (and Tailscale for remote access, if you like), and press install — it’s ready in a few minutes. Packages come from Tokyo Mac’s own software server in the same data center as the machine, so it’s fast, and each one is checked against the SHA-256 published by official Homebrew before installing.

On your own Mac mini, pick one container runtime:
- Docker Desktop: the official app, free for personal use, with a GUI and the most complete feature set. Install it with Homebrew:
brew install --cask docker-desktop - OrbStack: a lighter alternative that starts faster and uses less memory, also free for personal use:
brew install --cask orbstack - Colima: free and open source, command-line driven, for people who like full control:
brew install colima docker docker-compose, thencolima start.
If Homebrew is not installed yet, install the command line tools and Homebrew first (run this in Terminal on the Mac mini itself):
xcode-select --install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Write your services down in a docker-compose.yml so the setup is repeatable. Here is a Jellyfin media server as an example:
services:
jellyfin:
image: jellyfin/jellyfin:latest
container_name: jellyfin
ports:
- "8096:8096"
volumes:
- ~/srv/jellyfin/config:/config
- ~/media:/media
restart: unless-stopped
docker compose -f ~/srv/docker-compose.yml up -d
A few services home servers commonly run:
| Service | What it does | Website |
|---|---|---|
| Jellyfin | Free, open-source media server for your movies and music | https://jellyfin.org |
| Immich | Self-hosted photo backup from your phone, a Google Photos alternative | https://immich.app |
| Home Assistant | Smart-home hub: lights, sensors and automations run locally | https://www.home-assistant.io |
| Nextcloud | Personal cloud storage and online documents | https://nextcloud.com |
Containers run Linux under the hood, so pick images that ship ARM64 builds — the mainstream services all do.
Make services start on boot
Services should come back by themselves after a reboot. Setting restart: unless-stopped on a container handles that, as long as the runtime itself starts at login — both Docker Desktop and OrbStack have a “start at login” option, so turn it on.
For native apps or scripts, use macOS launchd. Write a plist into ~/Library/LaunchAgents/, for example com.example.homeserver.plist:
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.example.homeserver</string>
<key>ProgramArguments</key>
<array>
<string>/opt/homebrew/bin/docker</string>
<string>compose</string>
<string>-f</string>
<string>/Users/yourname/srv/docker-compose.yml</string>
<string>up</string>
<string>-d</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
Load it once, and it runs at every login from then on:
launchctl load ~/Library/LaunchAgents/com.example.homeserver.plist
Replace /Users/yourname with your own username. After editing a plist, run launchctl unload and then load again for the change to take effect.
Reaching it from outside: don’t open router ports
Once services are running, the most common mistake is forwarding ports on the router to expose them directly to the internet. Port scanners find open services within minutes, and a service with a weak password will be tried quickly.
The right order is network first, access second:
- Install Tailscale on the Mac mini and on your phone and laptop, sign in to the same account, and your devices share a private network. You can reach your services from anywhere exactly as if you were at home, without opening a single port. The steps are in our Tailscale on a remote Mac guide.
- ZeroTier works the same way; see ZeroTier on a remote Mac.
- Give every service a strong password and never leave the default login in place. Keep admin panels private.
- If family members genuinely need one service from outside, expose only that one, and make sure it has login protection and is up to date.
Backup and storage
The built-in drive is only 256 GB or 512 GB, and media fills that fast. Keep media on an external drive (a Thunderbolt or USB-C SSD or drive enclosure) and keep service configuration and databases on the internal drive, so reinstalling a service is quick.
Backups matter more. Data that exists in only one place is not backed up, and that applies double to a server:
- Back up the Mac mini itself with Time Machine to a second external drive.
- Copy service data directories — Jellyfin’s config, the Immich photo library — to another drive or your NAS on a regular schedule.
- Test a restore at least once. A backup you have never actually read back from is a hope, not a backup.
FAQ
How much power does a Mac mini server use? About 4 W at idle, according to Apple’s own figures. Even with an external drive and a few containers running, a year of electricity typically costs only a few dollars — far less than an old desktop left on all day.
Is 16 GB of RAM enough? For one instance each of Jellyfin, Immich, Home Assistant and Nextcloud, yes. The container runtime itself reserves memory, and seven or eight heavy services at once will strain it. Since memory is fixed at purchase, decide what you want to run before you buy.
Does it need a monitor attached? No. Once the initial setup is done, manage it over SSH and Screen Sharing and put the monitor away. Plug one in temporarily whenever you need it.
Can it fully replace a NAS? For a small setup, yes: file sharing, backups and media on one box. But if you need many terabytes with redundant drives, a dedicated NAS is still the better tool — let the Mac mini run the apps and the NAS hold the data.
On Tokyo Mac
If you would rather not buy a Mac mini and keep it running at home, you can rent one that is already online: a Tokyo Mac Mac mini sits in a Tokyo data center with sleep and screen lock disabled, online 24/7, on a fixed Japan IP. Docker Desktop, OrbStack and Tailscale install in one click from My Macs → Install apps, with no administrator password, and Homebrew can be ticked to install when you set up your account. If things get messy or the disk fills up, Actions → Erase and reset puts a fresh macOS back on the machine, and you pick the apps to reinstall at the same time — a clean setup again in minutes. One thing to plan for: when a rental ends, the machine is wiped and reinstalled, so back up your service data before then. See Tokyo Mac.