---
title: Deploy FalkorDB with AI on Blossom
url: "/deploy/falkordb/"
canonical_url: https://blossom88.com/deploy/falkordb/
markdown_url: https://blossom88.com/deploy/falkordb.md
summary: Run FalkorDB privately and query a sample service dependency graph after
  an update.
categories:
- deployment
- databases
stack:
- Valkey
- Cypher
---

# Deploy FalkorDB with AI on Blossom

[FalkorDB](https://github.com/FalkorDB/FalkorDB) stores connected data
and uses Cypher to follow relationships. This recipe shows which
services a checkout flow depends on.

## Ask Your Agent

> **Ask your AI agent:** Deploy FalkorDB on Blossom and help me query a small service dependency graph.
>
> Follow this guide: https://blossom88.com/deploy/falkordb/

[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 |
|---|---|---|
| FalkorDB | Store services and their dependencies in a graph | Private Persistent Service |
| Client | Write and query the sample graph | Blossom Job |

## Deploy FalkorDB

Use the official server image with Valkey, keep port `6379` private,
and set a strong password. FalkorDB is available under
[AGPLv3](https://github.com/FalkorDB/FalkorDB/blob/v6.2.1/LICENSE-AGPL)
or [SSPLv1](https://github.com/FalkorDB/FalkorDB/blob/v6.2.1/LICENSE-SSPL)
starting with version 6.2.0.

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

Mount a [Persistent Service Volume](/docs/apps/persistent-services/)
at `/var/lib/falkordb/data`. Set `VALKEY_ARGS` with a secret for
`--requirepass` and enable append-only persistence. Use the same
password in the private client. Confirm an unauthenticated request
is rejected.

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

</details>

## Find the Dependencies

Create three service nodes. Link checkout to orders and orders to
PostgreSQL. Use `GRAPH.RO_QUERY` to follow one or two dependencies
from checkout.

> **Ask your AI agent:** Help me create the checkout dependency graph and query both downstream services.

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



![Find two downstream services from checkout.](/deploy/assets/images/falkordb/checkout-dependencies.webp)

## Query the Same Graph After an Update

Replace the database Container and run the same traversal on the
same Volume. It should return orders and PostgreSQL again.

> **Ask your AI agent:** Replace the FalkorDB Container and check that checkout still has the same dependencies.

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



![Read the same dependencies after replacing FalkorDB.](/deploy/assets/images/falkordb/dependencies-after-replacement.webp)

## What You Get

A private graph database with a persistent dependency graph and
a query you can adapt to your own services.

## What You Get

- A private FalkorDB instance with authentication
- A dependency graph with three services
- The same query results after replacing the database Container

Tested on Blossom: The same two downstream dependencies returned after replacing the database Container.
