Self-host Immich with Levelrail
VerifiedSelf-hosted photo and video backup with mobile apps, facial recognition, and timeline search.
- Authorimmich-app
- LicenceAGPL-3.0
- Memory1.5 GiB
- Archarm64
- Services4
How to self-host Immich
-
Pull the images
4 images are pulled on your server.
Show images
ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0ghcr.io/immich-app/immich-machine-learning:v1.126.1ghcr.io/immich-app/immich-server:v1.126.1redis:7.4-alpine
-
Create the app
4 services start in a single Compose app, with 3 named volume mounts for your data, on port 2283.
-
Fill in the secrets
2 secrets are generated and stored encrypted, 6 settings are preset, you do not have to fill in anything.
-
Open it
Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.
Immich requirements
- Memory
- About 1.5 GiB
- Architectures
- amd64 image published, arm64 tested
- Ports
- 2283
- Domain
- Optional, an sslip.io address is used without one
- Settings
- none to fill in
- License
- AGPL-3.0, network copyleft (agpl) license
- Verified. Verified on arm64 with image tag v1.126.1. Our CI ran this exact image version and it answered on its health path. Evidence
- Host ports. It publishes port 2283 on the host, so open them in the VPS firewall only if you want that.
Install Levelrail first
On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then Immich. New to Levelrail? Install it on a fresh VPS first.
docker pull ghcr.io/glincker/levelrail:latest Then levelrail-cli login --device. See Getting started and the Immich docs page.
Deploy Immich your way
Every format below deploys the same pinned images. Pick the one that fits how you work.
Deploy Immich from the CLI
levelrail-cli templates deploy immich --name my-immich Deploy Immich with the API
curl -X POST -H "Authorization: Bearer $TOKEN" \
https://levelrail.example.com/api/v1/service-templates/immich/deploy Immich configuration
Immich services
| Service | Image | Ports | Volumes |
|---|---|---|---|
| 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 |
Immich environment variables
| Variable | Service | Value |
|---|---|---|
| POSTGRES_DB | db | Preset by the template |
| POSTGRES_PASSWORD | db | Generated at deploy |
| POSTGRES_USER | db | Preset by the template |
| DB_DATABASE_NAME | immich-server | Preset by the template |
| DB_HOSTNAME | immich-server | Preset by the template |
| DB_PASSWORD | immich-server | Generated at deploy |
| DB_USERNAME | immich-server | Preset by the template |
| REDIS_HOSTNAME | immich-server | Preset by the template |
Ports and volumes
- Ports
- 2283
- Volumes
- 3 named mounts: immich_db_data -> /var/lib/postgresql/data, immich_ml_cache -> /cache, immich_upload_data -> /usr/src/app/upload
Immich FAQ
How much memory does Immich need?
The catalog lists about 1.5 GiB of memory for Immich across its 4 services.
Does Immich run on arm64?
For Immich, arm64 is tested; amd64 is image published.
What licence is Immich under?
Immich is licensed under AGPL-3.0, which is network copyleft, so source sharing also applies when it is offered as a hosted service.
Does Immich need configuration before it starts?
No. The template fills in its own defaults and generates secrets at deploy time.
Which database does Immich bundle?
The template includes Postgres and Redis, running as its own service.
Which ports does Immich use?
Immich listens on port 2283 inside the stack.
Where does Immich keep its data?
In named volumes: immich_db_data mounted at /var/lib/postgresql/data, immich_ml_cache mounted at /cache and immich_upload_data mounted at /usr/src/app/upload.
Can I deploy Immich on Dokploy or Dokku?
The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id immich for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0, ghcr.io/immich-app/immich-machine-learning:v1.126.1, ghcr.io/immich-app/immich-server:v1.126.1, redis:7.4-alpine is what you deploy there.