---
title: Deploy Immich with AI on Blossom
url: "/deploy/immich/"
canonical_url: https://blossom88.com/deploy/immich/
markdown_url: https://blossom88.com/deploy/immich.md
summary: Deploy Immich with AI on Blossom. Organize a private photo library with persistent
  media storage, PostgreSQL with VectorChord, and managed Redis.
stack:
- TypeScript
- Svelte
- NestJS
- Python
- PostgreSQL
- Redis
---

# Deploy Immich with AI on Blossom

[Immich](https://immich.app/) organizes photos and videos into a personal
library. Browse a timeline, make albums and find images in your collection.

## Ask Your Agent

> **Ask your AI agent:** Deploy Immich on Blossom so I can organize my photos.
>
> Follow this guide: https://blossom88.com/deploy/immich/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and [choose a Location in your cloud account](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#connect-your-provider).

## Your Photo Library

| Part | Purpose |
|---|---|
| Immich server | Photo library, uploads and background jobs |
| PostgreSQL with VectorChord | Accounts, albums, metadata and search indexes |
| Machine learning | Supports semantic search and image analysis |
| Managed Redis | Coordinates background work |

The library and database use separate
[Persistent Services](https://docs.blossom88.com/docs/apps/persistent-services/).
Choose storage for your collection, including generated previews and backups.

![Immich displays a sample photo library and a saved album.](/deploy/assets/images/immich/photo-library.webp)

<details class="optional-reading" markdown="1">
<summary>Deployment setup and commands</summary>

Check current [requirements](https://docs.immich.app/install/requirements/),
[release configuration](https://docs.immich.app/install/docker-compose/)
and [database requirements](https://docs.immich.app/administration/postgres-standalone/).
Choose compatible maintained app, machine-learning and PostgreSQL images,
pinned by their multi-architecture index digests.

Use Immich's PostgreSQL distribution with compatible VectorChord and pgvector
extensions in a private Persistent Service. Give it a stable password and
logical database. Mount the data at the path its selected PostgreSQL major
expects. Keep the library in a separate Persistent Service mounted at `/data`.
Run machine learning on regular App Capacity and connect managed Redis.

    blossom profile:show
    blossom app:create --data '{"app":{"name":"immich"}}'
    blossom environment:create --data environment.yml
    blossom cache_instance:create --data redis.yml
    blossom activity:wait --id activity-100 --timeout 20m
    blossom environment_link:create --data redis-link.yml
    blossom service:create --data database.yml
    blossom service:create --data machine-learning.yml
    blossom service:create --data web.yml

Link Redis under a separate variable such as `BLOSSOM_REDIS_URL`. Translate
the connection to Immich's supported Redis configuration at startup: its
`REDIS_URL` expects an `ioredis://` encoded JSON configuration, rather than
a conventional `redis://` connection string. Set `DB_URL` to the private
PostgreSQL Service address and preserve its credentials across deployments.

Only the web Service is public. Keep initial owner setup behind Blossom
Account access. Use HTTP readiness checks against the server's
`/api/server/ping` and machine learning's `/ping`, with time for startup
and migrations. Choose memory, worker concurrency and image-processing limits
from the current requirements and your workload.

    blossom env_var:push --environment environment-100 --file .env.production
    blossom environment:deploy --id environment-100 --follow
    blossom environment:show --id environment-100

Finish owner setup in Immich, then point its machine-learning settings to the
private machine-learning Service URL. Keep the database private. Model caches
can be downloaded again; originals and generated library files stay on the
library Volume.

For native API clients, allow `/api/*` through Blossom Account access after
owner setup. Allow the static `/service-worker.js` script for the browser app
as well. Immich authenticates API requests. Verify that anonymous
library and original-file requests are denied; keep the browser interface
behind Account access. Configure actual mobile clients separately using
Immich's current [client and proxy requirements](https://docs.immich.app/administration/reverse-proxy/).

</details>

## Make Your First Album

Upload a few sample images. Create an album, add the images and open an
original to view its details or download it.

<details class="optional-reading" markdown="1">
<summary>Updates, persistence and backups</summary>

Preserve both Volumes, database credentials and the Redis connection across
updates. A Persistent Service has one writer, so replacing it interrupts that
Service while its Volume is handed over.

    blossom environment:deploy --id environment-100 --follow
    blossom container:list --environment environment-100

Our sample originals, thumbnails, album membership and semantic search survived
replacement of all three Containers. A fresh password login reopened the same
library. We also downloaded an intact database export; restoration and actual
mobile backup were outside this check.

Follow Immich's [backup and restore guidance](https://docs.immich.app/administration/backup-and-restore/).
Back up the database as well as the original media; one alone cannot restore
the full library. Container replacement is not a backup test.

</details>

## What You Get

- Your own browser-based photo library
- Persistent storage for originals, previews and albums
- PostgreSQL with VectorChord and managed Redis
