---
title: Deploy Ente Photos with AI on Blossom
url: "/deploy/ente-photos/"
canonical_url: https://blossom88.com/deploy/ente-photos/
markdown_url: https://blossom88.com/deploy/ente-photos.md
summary: Create a private photo album and download the original after a Container
  update.
categories:
- deployment
- media
- storage
stack:
- TypeScript
- React
- Go
- PostgreSQL
---

# Deploy Ente Photos with AI on Blossom

[Ente Photos](https://ente.io/) is an end-to-end encrypted photo library.
The self-hosted edition uses the [AGPL-3.0 license](https://github.com/ente/ente/blob/main/LICENSE).
Create a private album and download the original from a fresh session.

## Ask Your Agent

> **Ask your AI agent:** Deploy Ente Photos on Blossom with managed PostgreSQL and my private R2 bucket. Help me create my first album.
>
> Follow this guide: https://blossom88.com/deploy/ente-photos/

[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).

## Have Ready

- **Private R2 bucket** (Required): In your Cloudflare account, create a bucket and an Object Read and Write key restricted to it.

## How It Runs

| Part | Role | Where |
|---|---|---|
| Photos web and Museum API | Open the library and manage albums and signed file requests | Two Services on regular App Capacity |
| PostgreSQL | Store account and album data | Blossom Managed PostgreSQL |
| Cloudflare R2 | Store the encrypted media objects | Your private bucket |

## Set Up the Private Library

Deploy the official Photos web and Museum API images as separate Services.
Keep Museum private and connect it to managed PostgreSQL and your R2
bucket. Put the Photos web Service behind Blossom Account access.

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

Use the [Photos startup script](/deploy/recipes/ente-photos/photos-runtime.sh)
to route `/museum/` to the internal Museum hostname. Set that hostname
as `ENTE_MUSEUM_HOST`. The browser uses the Photos origin for the API.

Supply `ENTE_MUSEUM_CONFIG_B64` as a runtime secret for the [Museum startup
script](/deploy/recipes/ente-photos/museum-runtime.sh). Configure the linked
PostgreSQL database, stable encryption, hash, and JWT secrets, and the
owner verification method. In Museum's [object storage configuration](https://ente.com/help/self-hosting/administration/object-storage),
use `b2-eu-cen` for the primary bucket, HTTPS, path-style URLs, and R2
region `auto`. Allow the Photos origin in the bucket's CORS rules.

</details>

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

    blossom app_plan:preview --data ente-photos-plan.yml
    blossom app:create --data ente-photos-app.yml
    blossom environment:create --data ente-photos-environment.yml
    blossom database_instance:create --data ente-postgres.yml
    blossom environment_link:create --data ente-postgres-link.yml
    blossom service:create --data ente-museum.yml
    blossom service:create --data ente-photos-web.yml
    blossom env_var:push --environment environment-100 --file ente.env
    blossom environment:deploy --id environment-100 --follow

</details>

## Create Your Ente Account

Open the Photos page and use Ente's verification flow to create an owner
account. Keep your recovery key somewhere private.

> **Ask your AI agent:** Help me create my Ente account and open the private photo library.

> Follow this guide: https://blossom88.com/deploy/ente-photos/



## Make Your First Album

Upload a photo you own into a new album. Open the album and download that
original.

![Open the private album with a sample photo.](/deploy/assets/images/ente-photos/ente-photos-workshop-album.webp)

> **Ask your AI agent:** Help me create a private Ente album, add a photo, and download the original.

> Follow this guide: https://blossom88.com/deploy/ente-photos/



## Reopen It After an Update

Sign in from a fresh browser session after replacing the Photos and Museum
Containers. Open the same album and download the original again.

> **Ask your AI agent:** Replace the Photos and Museum Containers, then help me reopen my Ente album and compare the original photo.

> Follow this guide: https://blossom88.com/deploy/ente-photos/



![Reopen the original photo after a Container update.](/deploy/assets/images/ente-photos/ente-photos-reopened-original.webp)

## What You Get

- A photo library behind Blossom Account access
- An album you can open in a fresh browser session
- Original files you can download after an update

Tested on Blossom: After replacing Photos and Museum, a fresh session reopened the album and downloaded the original with the same checksum.
