---
title: Deploy Supabase with AI on Blossom
url: "/deploy/supabase/"
canonical_url: https://blossom88.com/deploy/supabase/
markdown_url: https://blossom88.com/deploy/supabase.md
summary: Deploy Supabase with AI on Blossom. Self-host a PostgreSQL backend with authentication,
  data APIs, Realtime, private file storage, and functions.
categories:
- deployment
- backend
stack:
- PostgreSQL
- Go
- Elixir
- Next.js
- Deno
---

# Deploy Supabase with AI on Blossom

[Supabase](https://supabase.com/) is a PostgreSQL backend with authentication,
data APIs, Realtime, file storage and functions for your web or mobile app.

![A Next.js client showing saved notes, private files, and a live connection to Supabase on Blossom.](/deploy/assets/images/supabase/backend-client.png)

![The Supabase Studio notes table showing records and its row-level security indicator.](/deploy/assets/images/supabase/studio-notes.png)

## Ask Your Agent

> **Ask your AI agent:** Deploy Supabase on Blossom and help me connect my app.
>
> Follow this guide: https://blossom88.com/deploy/supabase/

[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

Nothing is required beyond your Blossom account.

- **Your app** (Later): A web or mobile app to connect. Your agent can start you with a Next.js client.
- **Email provider** (Later): Needed before you turn on sign-ups or password resets.

## How It Runs

Supabase uses its own PostgreSQL build, so it runs as a [Persistent Service](/docs/apps/persistent-services/) instead of managed PostgreSQL.

| Part | Role | Where |
|---|---|---|
| Supabase PostgreSQL | Database, users and access policies | Private · its own Volume · one Container |
| API Services | Auth, data APIs, Realtime and functions | Private · App Capacity |
| Storage | Uploaded files and their access policies | Private · its own Volume · one Container |
| Studio | Administration dashboard and saved SQL snippets | Separate login · its own Volume · one Container |
| Gateway | HTTPS routing for your app's API calls | Public HTTPS |

## Deploy Supabase

Your agent picks a matching
[Supabase self-hosting release](https://supabase.com/docs/guides/self-hosting/docker),
adapts its services to Blossom, and keeps database passwords, signing keys and
dashboard credentials stable across deploys.

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

    blossom profile:show
    blossom app:create --data '{"app":{"name":"supabase"}}'
    blossom environment:create --data environment.yml

One Service per Supabase component:

    blossom service:create --data postgres.yml
    blossom service:create --data auth.yml
    blossom service:create --data rest.yml
    blossom service:create --data realtime.yml
    blossom service:create --data storage.yml
    blossom service:create --data functions.yml
    blossom service:create --data meta.yml
    blossom service:create --data studio.yml
    blossom service:create --data gateway.yml

Settings, deploy, and check:

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

</details>

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

- **Database.** Supabase needs its compatible PostgreSQL image, extensions,
  roles and initialization scripts. Run it as a private
  [Persistent Service](/docs/apps/persistent-services/); a
  standard managed PostgreSQL connection is not a drop-in replacement.
- **Volumes.** PostgreSQL, uploaded objects and saved Studio snippets use
  Persistent Volumes. Run each Volume-backed Service as one Container. Keep
  function source in the saved deployment configuration so every release
  includes it.
- **Images and routes.** Use the selected release's images, SQL scripts,
  gateway routes and service settings, adapted to Blossom's private Service
  names and each image's supported startup command. environment.yml sets your
  App ID, a prebuilt gateway image, public access for SDK requests, and
  dashboard authentication for Studio.
- **Gateway.** Match its upstream address family to the application
  listeners. Check real REST and Storage responses through the gateway,
  including where an image has no shell for a command health check.
  Network-dependent processes wait for their database before starting.
- **URLs.** Deploy once to get the generated HTTPS URL. Apply it to the
  gateway, Auth, Studio and Storage, then redeploy before connecting your
  client. Use your client's URL as the sign-in redirect. Keep credentials
  in the private environment file.
- **Optional parts.** Image transformations, log analytics and a connection
  pooler have their own upstream requirements. Add them when the app needs
  them.

</details>

## Connect Your App

Use your HTTPS endpoint and public client key in the app. Keep the privileged
server key on your backend.

> **Ask your AI agent:** Help me connect an app to my Supabase on Blossom.

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



## Lock Down Your Data

Turn on row-level security so each user reaches only their own records and
files. Create two test users from Studio and check what each can access.

> **Ask your AI agent:** Enable row-level security on my notes table and test it with two users.

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



## See a Realtime Update

Open two sessions with the same test user. Add a note in one session and
watch the other receive it.

> **Ask your AI agent:** Help me see a new note appear in two sessions of my app without refreshing.

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



## Keep It Running

Updates keep your Volumes and secrets, follow the selected release's upgrade
steps, and check your app afterward. Database and file access pause briefly
while their single Containers are replaced. Turn on Volume backups for the
database and files.

<details class="optional-reading" markdown="1">
<summary>Configure email for sign-ups and password resets</summary>

Add your email provider before you turn on public sign-ups or password resets.

> **Ask your AI agent:** Configure email on my Supabase for sign-ups and password resets.

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



</details>

<details class="optional-reading" markdown="1">
<summary>Capacity and cost</summary>

With the cheapest eligible Hetzner CX sizes, the tested allocations work out
to **about $48/month including Blossom management** for the steady
footprint. Keeping a full replacement App fleet ready raises the estimate
to **about $66/month**.

| Example | Hetzner | Blossom | Total per month |
|---|---:|---:|---:|
| Steady footprint, On demand | $27.67 | $20.00 | $47.67 |
| With a full replacement App fleet | $36.17 | $30.00 | $66.17 |

These are ideal CX price estimates for an otherwise empty Location, not
measurements of what every customer will use. Blossom can automatically
[switch to cheaper Servers](/docs/capacity/#cheaper-servers-automatically)
while keeping the same App Capacity and room you've reserved for deploys.

### How the estimate is calculated

Checked November 19, 2026. USD before tax, credits, backups, email, extra
transfer, and other usage. Container reservations come from the successful
Supabase test, without reducing their CPU or memory allocations. Server
prices exclude IPv4, which is listed separately.

| Infrastructure | Steady footprint | With replacement room |
|---|---|---|
| App Server | CX33: 4 vCPU / 8 GB, $9.99 | CX43: 8 vCPU / 16 GB, $18.49 |
| PostgreSQL Persistent Server | CX23: 2 vCPU / 4 GB, $6.49 | Same |
| Shared Persistent Server for Studio and Storage | CX23: 2 vCPU / 4 GB, $6.49 | Same |
| Three IPv4 addresses | $1.80 | $1.80 |
| Three Volumes, 60 GiB total | $2.90 | $2.90 |

Blossom charges $5 per 2 vCPU / 4 GB of running App or Persistent
Capacity. That is four units for the steady footprint and six with the
larger App Server. Provider Volumes have no additional Blossom storage
management fee. The replacement room is for the six App Services; it does
not create database or file-store replicas.

The On demand figure excludes temporary deployment capacity and its idle
retention. Existing spare capacity can lower the additional cost of adding
Supabase to an Account. Ask your agent for the current plan before deploying.

Sources: [Hetzner CX prices](https://www.hetzner.com/cloud/cost-optimized/),
[Volumes](https://www.hetzner.com/cloud/block-storage/), and
[Blossom rates](https://blossom88.com/pricing/details).

</details>



## What You Get

- HTTPS data APIs, sign-in and PostgreSQL
- Realtime, private file storage and functions
- A password-protected Studio
- Row-level security that keeps each user's data private
- A database and files that persist across updates

Tested on Blossom: Two users saw only their own records and files, and every record and file hash survived replacement of all nine Containers.
