Immich is free, open-source software that gives you your own Google Photos on a computer you control. Its phone apps back up your photos and videos automatically, and its web app lets you browse, search, and share them, with face recognition and smart search, but without monthly storage fees or a company scanning your library.
Cloud photo services are convenient until the free storage runs out, the price goes up, or you start wondering who else can see your family photos. Immich is one of the most popular self-hosted alternatives, with more than 120,000 stars on GitHub. It looks and works much like Google Photos, but the photos live on your own server, at home or anywhere you choose.
This guide explains what Immich does, what you need, how to install it with Docker, how to set up the phone app, and how to keep your photos safe, because once you host your own photos, backing them up is your job.
What Immich Can Do
- Automatic backup from your phone. The iOS and Android apps upload new photos and videos in the background, including Live Photos and motion photos.
- A familiar timeline. Browse everything by date with a fast, draggable scrollbar, plus albums, favorites, and an archive.
- Face recognition. Immich groups photos by person, so you can name people and see every photo of them.
- Smart search. Search by what’s in the picture, like “dog on the beach” or “birthday cake,” using machine learning that runs on your own server. You can also search by place, date, camera, and other photo details.
- A map of your photos. See where every geotagged photo was taken.
- Memories. “On this day” photos from past years, like the big services.
- Sharing. Shared albums with other users, public links for people without an account, and partner sharing so a spouse or partner can see your whole library.
- Multiple users. Each family member gets their own account and private library on the same server.
- RAW, video, and 360° photos. Immich handles camera RAW files and creates web-friendly versions of videos.
- Existing folders. “External libraries” let Immich show photos you already keep in folders, without moving or copying them.
Why Self-Host Your Photos?
The benefits:
- No storage fees. Your only costs are the hardware and drives, which you may already have.
- Privacy. Face recognition and smart search run on your server. Nobody else scans your library.
- No limits but your disks. Keep original-quality photos and videos, as many as your drives hold.
- Control. Your photos aren’t affected by a service’s price changes, policy changes, or account lockouts.
The trade-offs:
- You are the IT department. You keep the server running, install updates, and fix problems.
- Backups are your responsibility. A cloud service keeps copies in several data centers. Your server keeps one copy unless you set up more. This is the most important point in this guide; see Back Up Your Library below.
- Remote access takes some setup. Viewing photos away from home needs a VPN or a secure reverse proxy.
What You Need
According to Immich’s requirements:
| Minimum | Recommended | |
|---|---|---|
| Memory (RAM) | 6 GB | 8 GB |
| CPU | 2 cores | 4 cores |
| Operating system | 64-bit Linux | Ubuntu or Debian |
| Software | Docker with the Docker Compose plugin |
A few practical notes:
- Linux is strongly recommended. Immich runs on Windows and macOS through Docker Desktop, but the project discourages it and offers limited help with it. A small mini PC, a NAS that runs Docker, or a Linux virtual machine are common choices.
- Plan for storage. Thumbnails and converted videos add roughly 10–20% on top of your library’s size.
- Keep the database on a local SSD. The database is small (usually 1–3 GB), but it must not be on a network share.
- 4 GB of RAM can work if you turn off the machine learning features (face recognition and smart search).
If Docker is new to you, start with Docker for Beginners.
Install Immich With Docker Compose
Immich’s recommended installation uses Docker Compose, with two files from the latest release.
1. Create a folder and download the files:
mkdir ./immich-app
cd ./immich-app
wget -O docker-compose.yml https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
wget -O .env https://github.com/immich-app/immich/releases/latest/download/example.env
2. Edit the .env file. It looks like this:
# The location where your uploaded files are stored
UPLOAD_LOCATION=./library
# The location where your database files are stored. Network shares are not supported for the database
DB_DATA_LOCATION=./postgres
# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
# TZ=Etc/UTC
# The Immich version to use. You can pin this to a specific version like "v2.1.0"
IMMICH_VERSION=v3
# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=postgres
Change three things:
UPLOAD_LOCATION: where your photos will be stored. Point it to a drive with plenty of free space, like/mnt/photos/immich.DB_PASSWORD: replacepostgreswith a random password using only letters and numbers.TZ: remove the#and set your time zone, likeTZ=America/Los_Angeles.
3. Start Immich:
docker compose up -d
The first start downloads several images and takes a few minutes. Compose starts four containers: the Immich server, the machine learning service, a PostgreSQL database, and Valkey (a Redis-compatible cache). Check that they’re running with docker compose ps.
4. Open the web app at http://<server-ip>:2283 and create the first account. The first user becomes the administrator, so create it right away.
Set Up the Phone App
- Install Immich from the App Store, Google Play, or F-Droid.
- Enter your server address, like
http://192.168.1.50:2283, and sign in. - Open the app’s backup settings, choose which albums to back up, and turn on background backup.
The first backup can take hours or days for a large library, so leave the phone on Wi-Fi and charging overnight. Immich skips duplicates, so it’s safe to run the backup again or from several devices.
Moving from Google Photos? Download your library with Google Takeout, then import it with immich-go, a community tool that also restores dates and album names from the Takeout files. For photos you already keep in folders, add them as an external library under Administration > External Libraries instead of uploading them again.
Access Your Photos Away From Home
By default, Immich only works on your home network. To reach it from anywhere:
- Use a private VPN (easiest and safest). Tailscale connects your phone to your home network securely with no ports opened on your router, and the Immich app works as if you were home.
- Use a reverse proxy with HTTPS if you want a public web address, for example to share albums with people outside your network. This takes more work and exposes the server to the internet, so keep Immich updated and use strong passwords.
Never forward port 2283 straight from your router to the internet without HTTPS.
Back Up Your Library
This is the part people skip, and it’s the part that matters. Immich is not a backup by itself: if the server’s drive fails and you’ve deleted the photos from your phone, they’re gone.
Immich helps with one piece: it automatically saves a daily dump of its database in UPLOAD_LOCATION/backups (by default every day at 2:00 a.m., keeping the last 14). You can change the schedule under Administration > Settings. But the database only stores information about your photos, like albums, faces, and file locations. You need to back up both:
- The whole
UPLOAD_LOCATIONfolder, which holds your photos, videos, and the database dumps. - Your
docker-compose.ymland.envfiles.
Follow the 3-2-1 backup rule: the photos on the Immich server, a second copy on another drive, and a third copy offsite, like a cloud backup service or a drive at a relative’s house. Then test a restore before you rely on it. Immich’s documentation has full backup and restore steps, including restoring a database dump from the web interface under Administration > Maintenance.
Keep the originals on your phone until you’ve confirmed your backups work.
Keeping Immich Updated
Immich releases updates often. To update:
docker compose pull
docker compose up -d
Before updating, read the release notes, especially for a new major version. IMMICH_VERSION=v3 in your .env file keeps you on version 3, so a future version 4, which may need manual steps, won’t install until you change it. Make sure you have a recent backup before every update.
A Short History
Immich was started in 2022 by developer Alex Tran, who wanted a self-hosted alternative to Google Photos for his family’s photos. It grew quickly into one of the most active open-source projects on GitHub. Since 2024 the core team has been backed by FUTO, a company that funds open-source software. Version 2.0, released in October 2025, was the first official stable release, and version 3.0 followed in July 2026. Immich is released under the AGPL-3.0 license.
Common Mistakes to Avoid
- Treating Immich as your only copy. Back up the upload folder and database dumps, ideally following the 3-2-1 rule.
- Putting the database on a network share. It’s not supported and can corrupt the database. Keep
DB_DATA_LOCATIONon a local SSD. - Running out of space. Remember thumbnails and converted videos add 10–20%. Watch your free space.
- Exposing port 2283 directly to the internet. Use a VPN like Tailscale, or a reverse proxy with HTTPS.
- Updating without reading release notes. Breaking changes are announced there.
- Deleting photos from your phone right after the first upload. Wait until you’ve confirmed the backup, and have a second copy.
Frequently Asked Questions
Is Immich free?
Yes. Immich is free and open source, and every feature is available without paying. The project sells optional supporter licenses to fund development.
Can Immich replace Google Photos or iCloud Photos?
For most people, yes: automatic phone backup, face recognition, smart search, shared albums, and memories are all there. The difference is that you run the server and handle backups yourself.
Does Immich work on a Raspberry Pi?
It can, on a 64-bit Raspberry Pi with enough memory, but it needs at least 6 GB of RAM for a smooth experience, so a Raspberry Pi 5 with 8 GB is the practical minimum. Machine learning features are slow on low-power hardware. A small mini PC is usually a better fit.
Is my data private?
Your photos stay on your server, and face recognition and smart search run locally. Map features and some optional services contact outside servers, and you can turn them off in the settings.
Can I use Immich and Google Photos at the same time?
Yes. Many people run both for a while, letting Google Photos and Immich back up the same phone, until they trust their Immich setup and backups.
Conclusion
Immich gives you the best parts of Google Photos, like automatic backup, face recognition, smart search, and easy sharing, on a server you own, without storage fees or someone else scanning your memories. Install it with Docker Compose, point the phone app at it, add remote access through a VPN like Tailscale, and above all, set up real backups. Your photos are irreplaceable; with a 3-2-1 backup in place, self-hosting them is both private and safe.
