Immich for Your Home Lab: Self-Hosted Photo Backup and Library

Home Lab Server

Immich for Your Home Lab: Self-Hosted Photo Backup and Library

A practical guide to running Immich in a home lab for private photo and video backup, including Docker Compose, storage planning, backups, and safe access.

Immich is one of the most popular first serious apps for a home lab because the value is obvious: your phone photos and videos get backed up to your own server instead of living only in a big-tech cloud account. It feels familiar if you have used Google Photos or iCloud Photos, but the storage, backup policy, and retention rules are yours.

Immich home lab architecture for photo and video backup
Immich turns your home lab into a private photo and video backup platform.

Why Immich Belongs In A Home Lab

Photos are personal, large, and emotionally important. That makes them a perfect reason to build a personal cloud carefully. Immich gives you mobile uploads, timeline browsing, albums, sharing, search, metadata processing, and machine-learning-assisted features while keeping your media on your own storage.

Good reasons to run Immich:

  • You want automatic phone photo backup to your server.
  • You want more control over storage size and retention.
  • You want a private family photo library.
  • You want to reduce reliance on cloud photo subscriptions.
  • You want a practical reason to learn Docker Compose, backups, reverse proxies, and storage planning.

Official Install Direction

The official Immich documentation recommends Docker Compose for production. The docs have you create an application directory, download the provided docker-compose.yml and example.env, rename/customize the environment file, set upload and database locations, and start with docker compose up -d.

Immich Docker Compose layout with server machine learning Postgres Redis and storage
Immich is a multi-container app. Keep upload storage and database storage planned separately.
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
docker compose up -d

Before starting, customize these values:

  • UPLOAD_LOCATION: where originals are stored.
  • DB_DATA_LOCATION: where Postgres stores database files.
  • DB_PASSWORD: change from the example value.
  • TZ: set your timezone.
  • IMMICH_VERSION: pin a version if you want controlled upgrades.

Storage Planning

Photo libraries grow forever. Before importing years of media, answer these questions:

  • How much space do you need today?
  • How much will phones add every month?
  • Where will originals live?
  • Where will thumbnails and generated assets live?
  • Where will the database live?
  • How will you back up both files and database?

Do not treat RAID as backup. RAID helps with disk failure, but it does not protect against accidental deletion, bad upgrades, malware, theft, fire, or user mistakes.

Backup Plan

Immich backup plan for library database local copy and offsite copy
Back up both the media library and the database. One without the other is incomplete.

For Immich, a serious backup plan includes:

  • Original upload library backup.
  • Postgres database backup.
  • Offsite encrypted copy.
  • Periodic restore test.
  • Upgrade snapshot before major Immich updates.

Security And Access

For a family photo library, prefer VPN access first. If you expose Immich publicly, use HTTPS, a reverse proxy, strong passwords, updates, monitoring, and limited admin access. Treat it like a sensitive personal data service, because it is.

Final Takeaway

Immich is a high-value home lab app because it solves a real personal problem: owning and protecting your photo library. Start with the official Docker Compose path, plan storage before importing everything, and make backups the first feature you finish.

Reference

Keep reading

Home Lab Server Sep 7, 2026 9 min read

Set Up Local AI with Ollama

Learn what Ollama does, install and run local AI models, choose a model for your workload, troubleshoot slow responses, and optionally connect another computer with a GPU.

Home Lab Server Sep 7, 2026 7 min read

Set Up Open WebUI to Chat with Your Local AI

Add a browser-based chat interface to Ollama with Open WebUI. Learn Docker setup, model connections, first-time login, persistent storage, and troubleshooting.