---
title: Deploy PhotoPrism with AI on Blossom
url: "/deploy/photoprism/"
canonical_url: https://blossom88.com/deploy/photoprism/
markdown_url: https://blossom88.com/deploy/photoprism.md
summary: Index a small photo library and keep the same originals and albums after
  an update.
categories:
- deployment
- photography
- storage
stack:
- Go
- Vue.js
- SQLite
---

# Deploy PhotoPrism with AI on Blossom

[PhotoPrism](https://www.photoprism.app/) indexes photos so you can
search and organize them in albums. Start with a small library on the
[Community Edition](https://docs.photoprism.app/license/agpl/).

## Ask Your Agent

> **Ask your AI agent:** Deploy PhotoPrism on Blossom and help me index a few photos and make an album.
>
> Follow this guide: https://blossom88.com/deploy/photoprism/

[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/#blossom-byoc).

## How It Runs

| Part | Role | Where |
|---|---|---|
| PhotoPrism Community Edition | Browse photos, index originals and manage albums | One Persistent Service |
| Originals, index and configuration | Keep files and album data across updates | Separate directories on one Volume |

## Deploy a Private Library

Run the official PhotoPrism image on a Persistent Service. Use Blossom
Account access and set an owner password. Store the originals and
PhotoPrism's index on the same Volume in separate directories.

<details class="optional-reading" markdown="1">
<summary>Notes for your agent</summary>

Set `PHOTOPRISM_ORIGINALS_PATH=/qualify/originals` and
`PHOTOPRISM_STORAGE_PATH=/qualify/storage` on the Volume mounted at
`/qualify`. Use SQLite for this small library and expose the web
Service on port 2342. For larger libraries, see PhotoPrism's
[database setup](https://docs.photoprism.app/getting-started/advanced/databases/).

</details>

<details class="optional-reading" markdown="1">
<summary>Commands your agent runs</summary>

    blossom app_plan:preview --data photoprism-plan.yml
    blossom app:create --data photoprism-app.yml
    blossom environment:create --data photoprism-environment.yml
    blossom service:create --data photoprism-web.yml
    blossom env_var:push --environment environment-100 --file photoprism.env
    blossom environment:deploy --id environment-100 --follow

</details>

## Index Your First Photos

Add two photos you own to the originals directory, run the index, and
open the library to see the imported photos.

> **Ask your AI agent:** Help me index two photos and find them in the library.

> Follow this guide: https://blossom88.com/deploy/photoprism/



## Make an Album

Put one of the photos into a new album. Open the album to check which
photo it contains.

![Browse two photos in the indexed library.](/deploy/assets/images/photoprism/photoprism-indexed-library.webp)

> **Ask your AI agent:** Index my sample photos and add one of them to a new album.

> Follow this guide: https://blossom88.com/deploy/photoprism/



## Reopen the Album

Replace the Container and sign in from a fresh browser session. Reopen
the album and confirm the original photos are still on the Volume.

> **Ask your AI agent:** Replace the PhotoPrism Container and help me reopen the same album and verify the originals.

> Follow this guide: https://blossom88.com/deploy/photoprism/



![Open the saved album after replacing the Container.](/deploy/assets/images/photoprism/photoprism-saved-album.webp)

## What You Get

- A private searchable photo library
- An album you can reopen after an update
- The original photos kept on a Volume

Tested on Blossom: The album reopened on a replacement Container with the same indexed photos and original file checksums.
