---
title: Deploy Gel with AI on Blossom
url: "/deploy/gel/"
canonical_url: https://blossom88.com/deploy/gel/
markdown_url: https://blossom88.com/deploy/gel.md
summary: Run a private Gel instance, apply a schema migration, and query a typed checklist
  after an update.
categories:
- deployment
- databases
stack:
- Gel
- PostgreSQL
- EdgeQL
---

# Deploy Gel with AI on Blossom

[Gel](https://github.com/geldata/gel), formerly EdgeDB, adds a typed
data model and the EdgeQL query language on top of PostgreSQL.
This recipe applies a small migration and queries the resulting data.

## Ask Your Agent

> **Ask your AI agent:** Deploy Gel on Blossom and help me migrate and query a small checklist.
>
> Follow this guide: https://blossom88.com/deploy/gel/

[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 |
|---|---|---|
| Gel | Store and query typed records on its built-in PostgreSQL backend | Private Persistent Service |
| Gel CLI | Apply the schema migration and query the checklist | Blossom Job |

## Deploy Gel

Use the [official Gel image](https://docs.geldata.com/reference/running/deployment/docker)
with a [Persistent Service Volume](/docs/apps/persistent-services/).
Keep the database private. Use a certificate that matches its private
hostname and give the client the issuing CA certificate.

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

Mount the Volume at `/var/lib/gel/data` and use a TCP probe on port
`5656`. Set `GEL_SERVER_PASSWORD` through Blossom Variables and Links.
Use that secret as `GEL_PASSWORD` in the client process. Provide the TLS
certificate and private key to the server and the CA certificate to
the client.

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

</details>

## Apply a Task Schema

Define a `Task` with a string title and a boolean completion field.
Create and apply the Gel migration, then add two items. Query their
titles and completion states in EdgeQL.

> **Ask your AI agent:** Help me migrate a Task type and check the titles and completion states of two sample items.

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



![Apply the Task schema and read the first two rows.](/deploy/assets/images/gel/apply-task-schema.webp)

## Read the Checklist After an Update

Replace the database Container. Run the same query and compare the
migration identifier and checklist values.

> **Ask your AI agent:** Replace Gel and check that the same migration and both checklist items are still there.

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



![Read the same migration and rows after replacing Gel.](/deploy/assets/images/gel/checklist-after-replacement.webp)

## What You Get

A private Gel database with a typed, migrated schema and a checklist
you can query from an application.

## What You Get

- A private Gel instance with a persistent database
- A migrated Task type with string and boolean fields
- The same migration and rows after replacing the Container

Tested on Blossom: One migration and both typed checklist rows survived a database Container replacement.
