← Projects
raspberry-pi intermediate Jul 16, 2026 ◑ 1 views ◯ 4 min read

Self-Host Your Photos with Immich: A Local Google Photos Alternative

Build time: 2-3 hours
Tools needed: None required
Parts List
immichself hostedphoto backupdockergoogle photos alternativeprivacydiy

Immich is a self-hosted photo and video backup platform — the closest genuine open-source alternative to Google Photos, including automatic mobile backup, AI-powered face recognition, and object/scene search, all running entirely on hardware you own. This build gets it running on a Raspberry Pi or home server via Docker, with your phone backing up to it automatically.

Why This Over Google Photos

Hardware Requirements

ComponentNotes Raspberry Pi 4/5 (8GB) or any small home serverImmich's AI features (face detection, smart search) are genuinely CPU-intensive — 8GB RAM is a meaningful step up from 4GB for a smooth experience, especially with a large photo library External SSD or large USB drivePhoto/video libraries grow fast — plan storage capacity for years of phone backups, not just what you have today Wired Ethernet connectionInitial backup of an existing phone photo library can mean transferring tens of gigabytes — WiFi works but wired is dramatically faster for that first sync

Installing Docker

curl -sSL https://get.docker.com | sh sudo usermod -aG docker $USER # log out and back in for the group change to take effect

Setting Up Immich via Docker Compose

  1. Create a project directory: mkdir -p ~/immich && cd ~/immich
  2. Download the official docker-compose.yml and .env template from Immich's GitHub releases (or docs.immich.app has the exact current-version files to copy) — Immich updates frequently, always pull the current official compose file rather than an old cached copy
  3. Edit .env to set your storage path, database password, and the timezone
  4. Point UPLOAD_LOCATION in .env at your external drive's mount path — this is where actual photo/video files get stored, separate from the database
docker compose up -d

First launch pulls several container images (the main server, a Postgres database, Redis, and a machine-learning container for the AI features) — this takes a few minutes on first run.

Initial Setup

  1. Navigate to http://your-pi-ip:2283 in a browser
  2. Create your admin account on first launch
  3. Install the Immich mobile app (iOS/Android) and point it at your server's address
  4. Enable automatic backup in the app settings — it'll begin uploading your camera roll to your own server, in the background, going forward

The AI Features

Once photos are uploaded, Immich's machine-learning container automatically:

All of this runs on your own hardware — genuinely slower than Google's data-center-scale infrastructure, but it's the tradeoff for the photos never leaving your network for AI processing.

Remote Access (Optional)

To back up your phone even when away from home WiFi, you need the server reachable from outside your network — options in order of complexity:

Whichever option, don't expose Immich's port directly to the open internet without protection — like any self-hosted service holding genuinely private data, it deserves the same access control you'd want on your home network generally.

Backup Strategy

Self-hosting your photos means YOU are now responsible for not losing them — this is the real tradeoff versus a cloud service's built-in redundancy:

Ongoing Maintenance

TaskFrequency Update the Docker imagesEvery few weeks — Immich ships new features and fixes regularly; docker compose pull && docker compose up -d Check storage capacityMonthly — photo/video libraries only grow, plan ahead before the drive fills Verify backup job actually ranPeriodically — confirm your offsite/secondary backup of the library is actually current, not just configured once and forgotten

The payoff is real: your entire photo library, searchable by content, organized by face, backed up automatically from your phone — everything the big cloud photo services offer, minus the subscription and minus your photos ever leaving hardware you actually control.