Gallery project

๐Ÿ“ธ Immich photo library

Self-hosted Google Photos. Auto-upload from phones, ML-powered search, shared albums โ€” all on your tailnet.

Gallery Self-Hosted Beginner Half-day Prereqs: Docker sidecar pattern

Why this project

Google Photos is convenient and reliable, but you're paying with both money and the rights to your kids' faces. Immich gives you the same UX (auto-upload, face recognition, semantic search) on your own hardware, with nothing leaving your home network. Tailscale handles the "reach it from my phone" problem that historically killed self-hosted photo libraries.

Who this helps

What you get

CLIENTS PRIVATE EDGE HOST ๐Ÿ“ฑ Immich appauto-upload ๐Ÿ’ป browseralbum / search ๐Ÿ”’ Tailscale Serve ยท tag:mediaimmich.tail-abc.ts.net ยท group:family ACL ๐Ÿ“ธ serverport 2283 ๐Ÿง  MLfaces, search ๐Ÿ—„๏ธ postgresmetadata ๐Ÿ“ photo storagedisk + offsite backup

Multi-container Immich stack runs on the host. ML processing (face recognition, semantic search) happens locally โ€” no photos ever leave your network.

Prerequisites

Steps

Follow Immich's official docker-compose ~15 min

Use Immich's official install on your home server. It includes the server, microservices, machine-learning, postgres, and redis containers.

Wrap it with a Tailscale sidecar ~10 min

Add a sidecar service that shares network namespace with the Immich web server. The official compose file uses ports: ["2283:2283"] โ€” replace that with the sidecar pattern from the Core project:

services:
  ts-immich:
    image: tailscale/tailscale:latest
    hostname: immich
    environment:
      - TS_AUTHKEY=${TS_AUTHKEY?required}
      - TS_EXTRA_ARGS=--advertise-tags=tag:media
      - TS_SERVE_CONFIG=/config/serve.json
    volumes:
      - ts-state:/var/lib/tailscale
      - ./serve-config.json:/config/serve.json
    cap_add: [net_admin, sys_module]

  immich-server:
    # ... from official docker-compose ...
    network_mode: service:ts-immich
    # remove the `ports:` block โ€” sidecar handles it

Serve config proxies to http://127.0.0.1:2283.

Initial setup ~10 min

Visit https://immich.tail-abc.ts.net. Create the admin account. Pick storage paths. Wait for the initial scan if you've pointed at an existing library.

Install the mobile app ~5 min

iOS / Android: install Immich. Open, point at your tailnet URL, sign in. Enable auto-backup. Photos start uploading whenever your phone is on the tailnet.

Lock it down with ACLs ~3 min

Photos are sensitive. Restrict to group:family only:

{ "action": "accept", "src": ["group:family"], "dst": ["tag:media:443"] }

Set up backups ~15 min

Your library is now your responsibility. Back up the Postgres database AND the upload directory regularly. Restic to B2/S3 is the typical pattern. Test a restore at least once.

Verify

Common issues

Caveats

Where this leads