---
title: Deploy pgAdmin with AI on Blossom
url: "/deploy/pgadmin/"
canonical_url: https://blossom88.com/deploy/pgadmin/
markdown_url: https://blossom88.com/deploy/pgadmin.md
summary: Connect to PostgreSQL in your browser and keep the saved server through updates.
categories:
- deployment
- databases
stack:
- Python
- React
- PostgreSQL
---

# Deploy pgAdmin with AI on Blossom

[pgAdmin](https://www.pgadmin.org/) is a browser interface for
PostgreSQL. Use it to explore schemas, inspect tables, and run queries.

## Ask Your Agent

> **Ask your AI agent:** Deploy pgAdmin on Blossom and help me connect to my PostgreSQL database.
>
> Follow this guide: https://blossom88.com/deploy/pgadmin/

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

## How It Runs

| Part | Role | Where |
|---|---|---|
| pgAdmin | Browse databases and save connection settings | Persistent Service behind Blossom Account access |
| PostgreSQL | Provide the database and sample table | Blossom Managed PostgreSQL |

## Deploy pgAdmin

Use the [official pgAdmin image](https://www.pgadmin.org/docs/pgadmin4/latest/container_deployment.html).
Protect its endpoint with Blossom Account access and set the initial
pgAdmin email and password. Connect your PostgreSQL database over its
private network address.

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

Set `PGADMIN_LISTEN_PORT=8080` and use that Service port. Mount a
[Persistent Service Volume](/docs/apps/persistent-services/) at
`/var/lib/pgadmin` for pgAdmin's account and saved server settings.
You can register the server in the browser or seed its connection
fields on the first start with pgAdmin's server import file.

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

</details>

## Open a Sample Table

Register your PostgreSQL server and enter the database password when
pgAdmin prompts. Open a schema and find a table in the object browser.

> **Ask your AI agent:** Help me open a sample table in my PostgreSQL database.

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



![Connect to a saved PostgreSQL server.](/deploy/assets/images/pgadmin/connected-database.webp)

## Reopen the Saved Server After an Update

Replace the web Container and sign in again. Open the saved server
and find the same table.

> **Ask your AI agent:** Check that my saved PostgreSQL server still works after an update.

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



![Find the sample table again after an update.](/deploy/assets/images/pgadmin/saved-workshop-table.webp)

## What You Get

A pgAdmin workspace that remembers your PostgreSQL server across deploys.

## What You Get

- A browser-based PostgreSQL workspace
- A saved server connection and a sample table
- The same registration after Container replacement

Tested on Blossom: The same saved PostgreSQL server and sample table reopened after Container replacement.
