# Self-host Immich

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

- Page: https://levelrail.com/templates/immich/
- JSON: https://levelrail.com/templates/immich.json
- Category: Media
- Licence: AGPL-3.0 (Network copyleft (AGPL) license)
- Source: https://github.com/immich-app/immich
- Upstream docs: https://immich.app/docs

## Requirements
- Memory: about 1.5 GiB
- amd64: published, arm64: tested
- Needs configuration before start: no
- Pinned image tag: v1.126.1

## Services

| Service | Image | Tag | 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 |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| db | POSTGRES_DB | preset |
| db | POSTGRES_PASSWORD | generated |
| db | POSTGRES_USER | preset |
| immich-server | DB_DATABASE_NAME | preset |
| immich-server | DB_HOSTNAME | preset |
| immich-server | DB_PASSWORD | generated |
| immich-server | DB_USERNAME | preset |
| immich-server | REDIS_HOSTNAME | preset |

## Deploy

### CLI

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

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/immich/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### 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.

Self-host Immich, Immich docker compose file, deploy Immich on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
