---
title: Deploy ArangoDB with AI on Blossom
url: "/deploy/arangodb/"
canonical_url: https://blossom88.com/deploy/arangodb/
markdown_url: https://blossom88.com/deploy/arangodb.md
summary: Run a private ArangoDB instance and explore a sample graph with a read-only
  account.
categories:
- deployment
- databases
stack:
- C++
- AQL
---

# Deploy ArangoDB with AI on Blossom

[ArangoDB](https://github.com/arangodb/arangodb) stores documents and
the relationships between them. You can follow those relationships
with an AQL query.

## Ask Your Agent

> **Ask your AI agent:** Deploy ArangoDB on Blossom and help me query a small graph as a read-only user.
>
> Follow this guide: https://blossom88.com/deploy/arangodb/

[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 |
|---|---|---|
| ArangoDB | Store people and their connections | Private Persistent Service |
| Client | Create and query the sample graph | Blossom Job |

## Deploy ArangoDB

Use the [official image](https://hub.docker.com/_/arangodb) and keep
the database private. This recipe is for your own team's use under
the [ArangoDB license](https://github.com/arangodb/arangodb/blob/v3.12.13/LICENSE).

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

Run one Container and mount a
[Persistent Service Volume](/docs/apps/persistent-services/) at
`/var/lib/arangodb3`. Use a TCP health check on port `8529` and set
`ARANGO_ROOT_PASSWORD` through Blossom Variables and Links. For our test,
we used a dedicated Persistent Service to store the sample graph.

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

</details>

## Follow Two Connections

Create three people and link Alex to Blair, then Blair to Casey.
Grant a viewer read access to the sample database and its two
collections. The viewer can query both steps of the graph and gets
HTTP 403 when trying to add a person.

> **Ask your AI agent:** Help me create a small handoff graph and query it as a read-only user.

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



![Follow the links from Alex to Blair and Casey.](/deploy/assets/images/arangodb/handoff-graph.webp)

## Run the Traversal After an Update

Replace the database Container and rerun the same AQL query as the
viewer.

> **Ask your AI agent:** Replace the ArangoDB Container and confirm the viewer gets the same graph results.

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



![Run the same traversal after replacing the Container.](/deploy/assets/images/arangodb/graph-after-replacement.webp)

## What You Get

A private database with a sample graph and a viewer that can follow
connections through it.

## What You Get

- A private ArangoDB instance
- A small graph with a scoped viewer account
- The same traversal results after replacing the database Container

Tested on Blossom: A read-only viewer followed the same two connections after replacing the database Container.
