Google Photos is convenient until you realize you’re renting back your own memories — and paying for the privilege. Immich flips the script: it gives you automatic phone backup, AI-powered search, and facial recognition, all on hardware you own, with no monthly fee.
This guide shows you how to self-host Immich with Docker in about 20 minutes. It’s the closest thing to Google Photos you can run yourself. For a full comparison of self-hosted photo options, see our Google Photos alternatives guide.
What is Immich?
Immich is an open-source, self-hosted photo and video management platform. It backs up photos from your phone automatically, then lets you browse them in a fast, modern web app — complete with AI search (“find photos of my dog at the beach”), facial recognition, and shared albums.
If you’ve used Google Photos, the interface will feel immediately familiar.
Why self-host your photos?
- You own your memories. No one can scan, delete, or monetize your photos.
- No storage fees. A one-time drive purchase replaces a lifetime of subscriptions.
- AI search without the cloud. Facial recognition and object detection run on your own machine.
- Private by default. Your photos never leave your network.
What you need
- A mini PC, Raspberry Pi, or any server with Docker.
- Storage — photos add up fast. A 1–4 TB drive is a sensible start.
- About 20 minutes.
Step 1: Create the Docker Compose file
Immich ships an official compose file. Grab it and start:
mkdir immich && cd immich
wget -O docker-compose.yml https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
The compose file includes several services (server, database, machine learning) — that’s normal. Immich is a full platform, not a single container.
Step 2: Set your storage location
Open the compose file and set the upload location to your big drive:
volumes:
- /mnt/bigdrive/immich:/usr/src/app/upload
This is where your actual photos live, so point it at real storage — not an SD card on a Raspberry Pi.
Step 3: Start it
docker compose up -d
Open http://your-server-ip:2283, create your admin account, and you’re live.
Back up photos from your phone
Install the Immich app (iOS or Android), sign in with your server’s URL, and enable automatic backup. From then on, every photo you take syncs to your server in the background.
You can also upload an existing library from your computer through the web interface.
Migrating from Google Photos
Use Google Takeout to export your library, then import the downloaded folders into Immich. It takes a while for large libraries — Google packages exports slowly — but once imported, your photos are yours for good.
Common mistakes to avoid
- Skipping backups. Your photo library is irreplaceable. Keep a second copy or off-site backup.
- Storing uploads on an SD card — it will wear out and corrupt.
- Ignoring the machine-learning service — it’s what powers AI search and facial recognition.
FAQ
Is Immich really free?
Yes. Immich is open source and free to self-host. You only pay for the hardware.
Does Immich replace Google Photos completely?
For most people, yes — automatic backup, search, and sharing are all covered. The one thing you lose is Google’s unlimited-scale infrastructure.
Can Immich run on a Raspberry Pi?
Yes, but the AI features (facial recognition) will be slow. A mini PC is the better fit for large libraries.
Can I share albums with family?
Yes — shared albums are built in, with per-album permissions and comments. Family members can even contribute their own photos to a shared album.
What Immich can do
Immich goes well beyond simple backup. Here’s what you get out of the box:
- AI search — type “sunset at the beach” and it finds the matching photos.
- Facial recognition — it automatically groups photos by the people in them.
- Shared albums — collaborate with family and friends, complete with comments.
- Memories — a “on this day” feed, just like Google Photos.
All of this runs on your own hardware — the machine-learning service handles tagging and recognition locally, so your photos never leave your network.
Performance notes
Facial recognition and thumbnail generation are CPU-intensive. On a Raspberry Pi they’ll be noticeably slow; on a mini PC they’re comfortable. If you’re importing a large library, kick off the initial scan and let it run overnight — that one-time cost is the price of a fully searchable archive.
Back up your Immich library
Your photos are irreplaceable, so don’t treat the server itself as the only copy. A simple, effective strategy:
- Nightly snapshot of the upload directory to a second drive.
- Off-site copy — a cheap cloud backup (like Backblaze B2) or a second physical location.
- Test a restore once in a while — a backup you’ve never restored is just a hope.
The 3-2-1 rule applies here as much as anywhere: three copies, two drives, one off-site. It sounds paranoid until the day you actually need it.
Immich vs Nextcloud Photos
If you already run Nextcloud, you might wonder why you’d run Immich too. Nextcloud Photos handles basic backup and albums fine, but Immich’s AI search and facial recognition are on another level entirely. Many people run both: Nextcloud for files and calendar, Immich specifically for photos. If photos are all you care about, skip Nextcloud altogether and go straight to Immich.
Either way, the two play nicely together — you can point Immich at a folder that Nextcloud also syncs, giving you the best of both without duplicating storage.
The bottom line
Immich is the self-hosted Google Photos replacement you’ve been looking for — automatic backup, AI search, and full ownership of your memories. Put it on a homelab with proper backups, and you’ll never pay for photo storage again.