---
title: Deploy Discourse with AI on Blossom
url: "/deploy/discourse/"
canonical_url: https://blossom88.com/deploy/discourse/
markdown_url: https://blossom88.com/deploy/discourse.md
summary: Deploy Discourse with AI on Blossom. Run a discussion forum and start a topic
  your community can reply to.
categories:
- deployment
- business
stack:
- Ruby
- Rails
- Ember.js
- PostgreSQL
- Redis
---

# Deploy Discourse with AI on Blossom

[Discourse](https://www.discourse.org/) is a forum for community discussion.
Organize questions, announcements, and answers into searchable topics.

![Discourse displays a sample workshop topic and reply.](/deploy/assets/images/discourse/thread.webp)

## Ask Your Agent

> **Ask your AI agent:** Deploy Discourse on Blossom and help me start a sample discussion.
>
> Follow this guide: https://blossom88.com/deploy/discourse/

[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).

## Start a Discussion

Create your administrator behind Blossom Account access and post a topic
with a reply and an image. Set up mail and registration before inviting
your community.

<details class="optional-reading" markdown="1">
<summary>Deployment setup and commands</summary>

Use the [official web-only Docker image](https://github.com/discourse/discourse_docker)
for the [GPL 2.0 self-hosted edition](https://github.com/discourse/discourse/blob/main/LICENSE.txt).
Start a private [Persistent Service](/docs/apps/persistent-services/) with
[PostgreSQL and pgvector](https://github.com/pgvector/pgvector#docker) first.
Link managed Redis and give the web Service a separate `/shared` Volume
for uploads. Use the generated HTTPS hostname and let the first boot run
migrations and prepare assets. Run the upstream `rake admin:create` task
through Blossom Shell with the same Discourse connection settings.

    blossom profile:show
    blossom app:create --data app.yml
    blossom environment:create --data environment.yml
    blossom service:create --data postgres-service.yml
    blossom cache_instance:create --data redis.yml
    blossom environment_link:create --data redis-link.yml
    blossom env_var:push --environment environment-100 --file .env.postgres
    blossom environment:deploy --id environment-100 --follow
    blossom service:create --data web-service.yml
    blossom env_var:push --environment environment-100 --file .env.production
    blossom environment:deploy --id environment-100 --follow
    blossom shell --service service-100

</details>

## What You Get

- A Discourse forum served over HTTPS
- Topics and replies in private PostgreSQL with pgvector
- A Persistent Service Volume for forum uploads
