---
title: Deploy Flarum with AI on Blossom
url: "/deploy/flarum/"
canonical_url: https://blossom88.com/deploy/flarum/
markdown_url: https://blossom88.com/deploy/flarum.md
summary: Start a Flarum forum and give a group a private place to discuss a topic.
categories:
- deployment
- community
stack:
- PHP
- Flarum
- MySQL
---

# Deploy Flarum with AI on Blossom

[Flarum](https://flarum.org/) is a forum for discussions organized by
tags. Use a restricted tag when a smaller group needs its own space.

## Ask Your Agent

> **Ask your AI agent:** Deploy Flarum on Blossom and help me set up a private discussion for a group.
>
> Follow this guide: https://blossom88.com/deploy/flarum/

[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 |
|---|---|---|
| Flarum | Serve the forum and keep configuration and assets | Persistent Service behind Blossom Account access |
| MySQL | Keep discussions, accounts, and permissions | Blossom Managed Data |

## Deploy Flarum

Use the [maintained Flarum container image](https://github.com/nfrastack/container-flarum)
with Blossom Managed MySQL. Keep the forum behind Blossom Account access
while setting it up.

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

Use MySQL 8.4 and keep the container's `/data` directory on a
[Persistent Service](/docs/apps/persistent-services/). Set the forum's
public URL to the HTTPS Service URL. Create and retain a strong
administrator password.

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

</details>

## Give a Group Its Own Discussion

Create a Workshop Members group and a restricted Private Workshop tag.
Put one sample account in the group and create a discussion under that
tag.

> **Ask your AI agent:** Create a private Workshop tag and post a sample discussion for members of a Workshop Members group.

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



![Review the restricted Workshop discussion as the administrator.](/deploy/assets/images/flarum/private-workshop.webp)

## Check Who Can Read It

Open the post as a group member. Try it again as another signed-in
forum user. The group member can read it. The other user can't.

> **Ask your AI agent:** Check that a Workshop Members account can read the discussion and a forum user outside the group can't.

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



## Reopen the Discussion After an Update

Replace the web Container and check both accounts again.

> **Ask your AI agent:** Replace the forum's web Container and confirm the original discussion is still private to the right group.

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



![Read the workshop post as a group member.](/deploy/assets/images/flarum/member-discussion.webp)

## What You Get

A Flarum forum with a private discussion your group can return to.

## What You Get

- A forum with an administrator and two sample accounts
- A discussion visible to one permission group
- The same post and permissions after Container replacement

Tested on Blossom: The workshop discussion and its group permissions survived Container replacement.
