---
title: Deploy NodeBB with AI on Blossom
url: "/deploy/nodebb/"
canonical_url: https://blossom88.com/deploy/nodebb/
markdown_url: https://blossom88.com/deploy/nodebb.md
summary: Start a community forum and try moderating a discussion.
categories:
- deployment
- community
stack:
- Node.js
- JavaScript
- PostgreSQL
---

# Deploy NodeBB with AI on Blossom

[NodeBB](https://nodebb.org/) gives a community a place to group
discussions into categories and moderate them. Try one topic with
an administrator and a regular member.

## Ask Your Agent

> **Ask your AI agent:** Deploy NodeBB on Blossom and help me start and moderate a forum discussion.
>
> Follow this guide: https://blossom88.com/deploy/nodebb/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and choose a Blossom Cloud Location when you log in. You can also use [Blossom BYOC (bring your own cloud)](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#blossom-byoc).

## How It Runs

| Part | Role | Where |
|---|---|---|
| NodeBB | Serve the forum and keep its configuration and uploads | Dedicated Persistent Service behind Blossom Account access |
| PostgreSQL | Store topics, posts, user accounts, and moderation state | Blossom Managed PostgreSQL |

## Deploy NodeBB

Use the [NodeBB container image](https://docs.nodebb.org/installing/cloud/docker/)
with Blossom Managed PostgreSQL. Create the first administrator and
keep the test forum behind Blossom Account access.

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

Connect NodeBB to the private PostgreSQL database. Set its public URL
from the HTTPS Service URL and use port 4567 inside the Container.
Configure NodeBB to trust the Product Gateway addresses for secure
session cookies. Keep the config and upload directory on one
[Persistent Service Volume](/docs/apps/persistent-services/) at
`/opt/config`. Rebuild the forum's frontend on a new Container.

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

</details>

## Start and Lock a Topic

Create a sample member and a topic in General Discussion. Use the
administrator's Topic Tools to lock the discussion.

> **Ask your AI agent:** Create a sample forum member and help me post and lock a discussion.

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



![See the locked workshop topic as the administrator.](/deploy/assets/images/nodebb/locked-workshop-topic.webp)

## Read It as a Member

Open the topic in a fresh browser session as the sample member.
The post is still visible, and moderation controls stay with the
administrator.

> **Ask your AI agent:** Open the locked topic as a regular member and check which moderation actions are available.

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



## Reopen the Topic After an Update

Replace the web Container and open the same topic as the member. The
original post stays readable and locked.

> **Ask your AI agent:** Replace the forum's web Container and check that the same topic is still readable and locked.

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



![Read the locked topic as a regular member.](/deploy/assets/images/nodebb/participant-topic-view.webp)

## What You Get

A forum with a readable, locked topic and separate permissions for
administrators and members.

## What You Get

- A NodeBB forum with an administrator and a sample member
- A discussion in one forum category
- A locked topic the member can still read

Tested on Blossom: The same topic and post stayed readable and locked after Container replacement.
