Self-host Immich on a VPS

Self-hosted photo and video backup with mobile apps, facial recognition, and timeline search.

levelrail-cli templates deploy immich --name my-immich

Specification

Status
Verified on arm64 with image tag v1.126.1
Category
Media
Services
db, immich-machine-learning, immich-server, redis
Ports
2283
Volumes
3
Memory
about 1.5 GiB
arm64
tested
amd64
image published
Settings to fill in
none

About Immich

Self-hosted photo and video backup with mobile apps, facial recognition, and timeline search. Runs 4 containers (db, immich-machine-learning, immich-server, redis), with immich-server listening on port 2283; data is kept in named volumes.

What it deploys

Immich runs as 4 services in a single Compose app, listening on port 2283, with 3 named volume mounts.

ServiceImageTagPortsVolumes
db ghcr.io/immich-app/postgres 14-vectorchord0.3.0-pgvectors0.2.0 none immich_db_data -> /var/lib/postgresql/data
immich-machine-learning ghcr.io/immich-app/immich-machine-learning v1.126.1 none immich_ml_cache -> /cache
immich-server ghcr.io/immich-app/immich-server v1.126.1 2283 immich_upload_data -> /usr/src/app/upload
redis redis 7.4-alpine none none

Before you install

  • CPU architecture. arm64 listed. Every image lists linux/arm64 in its registry manifest. That is a manifest fact, not proof the app runs on Arm.
  • Verified. Verified on arm64 with image tag v1.126.1. Verified means our CI ran this exact image version and it answered on its health path. Evidence
  • Host ports. It publishes port 2283 directly on the host, so open them in the VPS firewall only if you want that.

Settings and environment

You do not have to fill in anything. 2 secrets are generated at deploy and stored encrypted. Values are never shown here.

ServiceVariableValue
dbPOSTGRES_DBPreset by the template
dbPOSTGRES_PASSWORDGenerated at deploy
dbPOSTGRES_USERPreset by the template
immich-serverDB_DATABASE_NAMEPreset by the template
immich-serverDB_HOSTNAMEPreset by the template
immich-serverDB_PASSWORDGenerated at deploy
immich-serverDB_USERNAMEPreset by the template
immich-serverREDIS_HOSTNAMEPreset by the template

Install Immich on a VPS

  1. Install Levelrail on a fresh VPS

    Run this as root on a Linux server (amd64 or arm64) with ports 80 and 443 reachable. The installer prints a setup link.

    curl -fsSL https://levelrail.com/install.sh | sudo sh
  2. Sign in

    Open the setup link, choose a password, then log the CLI in. The CLI install command is curl -fsSL https://levelrail.com/install-cli.sh | sh if the machine does not have it. See Getting started.

    levelrail-cli login --device
  3. Read the template

    Shows the entry, including its full compose.yaml.

    levelrail-cli templates get immich
  4. Deploy it

    This deploys the template compose file as an app. The app name defaults to the template id; --name sets another.

    levelrail-cli templates deploy immich --name my-immich

Without a domain the app gets an sslip.io address. You can also deploy it from the dashboard: Apps, New app, Browse templates, then Immich.

More in Media

All Media templates