Blog Photo storage
How to set up a family photo server on a Mac mini
Private, automatic phone backup for the whole family, with no monthly storage fee.
A Mac mini makes an excellent home photo server. It’s small, silent, uses little power and can stay on all the time. This guide sets it up with Immich, a free, open-source app that looks and works a lot like Google Photos: phones back up automatically, and everyone can browse, search and share from their own devices.
Expect an afternoon for the setup. You’ll type a few commands into Terminal, and each one is spelled out below.
What you’ll need
- A Mac mini with an Apple chip (M1 or newer) and 16 GB of memory. The base current model has plenty of storage for this, since the photos will live on an external drive. A used or refurbished model works too, and costs less.
- A large external drive for the photos. Get at least twice the size of your current library. A desktop hard drive like the WD My Book offers lots of space for the money.
- A second drive or a cloud backup service for backups (see step 8). Backblaze Personal Backup backs up a Mac and its attached drives for a flat monthly fee.
- Optional: a small battery backup (UPS), like an APC Back-UPS, so a power flicker doesn’t shut the server down mid-write.
- A wired internet connection to your router, if possible. It’s faster and more reliable than Wi-Fi for large video backups.
Step 1: Set the Mac mini to stay on
- Open System Settings › Energy.
- Turn on Prevent automatic sleeping when the display is off.
- Turn on Wake for network access.
- Turn on Start up automatically after a power failure.
Step 2: Prepare the external drive
- Plug the drive into the Mac mini.
- Open Disk Utility (search for it with Cmd+Space).
- Select the drive, click Erase, name it
Photos, choose the format APFS, and click Erase. This deletes anything already on the drive.
Step 3: Install Docker Desktop
Immich runs inside Docker, a free tool that packages apps so they run the same on any computer.
- Download Docker Desktop for Mac (choose the Apple Silicon version) and install it.
- Open Docker Desktop and go to Settings › General. Turn on Start Docker Desktop when you sign in.
- Go to Settings › Resources and give it at least 6 GB of memory (8 GB is better) and 4 CPUs.
Step 4: Download Immich
Open Terminal (Cmd+Space, type Terminal) and paste these lines one at a time, pressing Return after each:
mkdir ~/immich-app
cd ~/immich-app
curl -L -o docker-compose.yml https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
curl -L -o .env https://github.com/immich-app/immich/releases/latest/download/example.env
Step 5: Point Immich at your drive
- In Terminal, type
open -e .envand press Return. The settings file opens in TextEdit. - Find the line starting with
UPLOAD_LOCATION=and change it toUPLOAD_LOCATION=/Volumes/Photos/immich. - Find
DB_PASSWORD=and replace the value with a password of your own, using only letters and numbers. - Save and close the file. Leave the database setting as it is, so the database stays on the Mac’s internal drive.
Step 6: Start Immich
- Back in Terminal, type
docker compose up -dand press Return. The first run downloads a few gigabytes, so give it several minutes. - Open Safari and go to
http://localhost:2283. - Create your account. The first account becomes the administrator. Then add an account for each family member under Administration › Users.
Step 7: Connect everyone’s phones
- Find the Mac mini’s address: System Settings › Network › your connection (Ethernet or Wi-Fi) › Details. It looks like
192.168.1.25. - On each phone, install the Immich app from the App Store or Google Play.
- Enter the server address as
http://192.168.1.25:2283(with your Mac’s numbers), and sign in. - Tap the cloud icon, choose which albums to back up, and turn on backup. The first backup can take hours. Leave the phone plugged in and on Wi-Fi overnight.
Keep the address from changing: in your router’s settings, reserve the Mac mini’s address (often called a DHCP reservation). Otherwise the router may give it a new one after a restart, and the phones will stop backing up.
To back up when you’re away from home, install Tailscale (free for personal use) on the Mac mini and each phone. It creates a private connection between your devices without opening your home network to the internet. In the Immich app, use the Mac mini’s Tailscale address instead.
Step 8: Back up the server
This step is not optional. If the external drive fails, or the house has a fire or flood, a server with no backup loses everything. Pick at least one:
- Cloud backup: install Backblaze on the Mac mini and make sure the Photos drive is included.
- Second drive: plug in another external drive and turn on Time Machine (System Settings › General › Time Machine). Time Machine skips external drives unless you tell it otherwise, so click Options and remove the Photos drive from the list of excluded items. Ideally, swap it with a drive kept at a relative’s house every few months.
Keeping it running
- Updates: once a month, open Terminal and run
cd ~/immich-app, thendocker compose pullanddocker compose up -d. Read the release notes on the Immich releases page first, since big updates sometimes need extra steps. - After a restart: sign in to the Mac so Docker Desktop starts, then check that
http://localhost:2283loads. - A note on support: Immich’s own documentation recommends Linux and offers limited help for Mac setups. It runs well on a Mac mini for most families, but if you get stuck, the Immich site and its community forums are the place to look.
Still deciding whether a home server is right for you? Read cloud or home server: where to keep your family photos.