---
title: "Run your first discussion"
description: "Start Blua locally with Docker and SQLite, then attach a comment thread to an article."
---

> Documentation Index
> Fetch the complete documentation index at: https://blua.pwp.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Run your first discussion

## Prepare the instance

Work in a checkout of the Blua repository with Docker Compose and OpenSSL available. If an operator has already set up your instance, go straight to the [embedding guide](/docs/embed).

```sh
cp .env.example .env
chmod 600 .env
```

Fill in these values in the new `.env` file.

| Setting                               | Local value                                                          |
| ------------------------------------- | -------------------------------------------------------------------- |
| `PUBLIC_ORIGIN`                       | `http://localhost:8080`                                              |
| `CURSOR_SECRET`, `BETTER_AUTH_SECRET` | Run `openssl rand -hex 32` separately for each secret.               |
| `ADMIN_USER_ID`                       | Generate a UUID with `uuidgen` and keep it across upgrades.          |
| `BACKUP_KEY`                          | Run `openssl rand -base64 32` and keep a separate copy for recovery. |

```sh
docker compose up --build -d
docker compose ps
```

## Provision the owner

Export `ACCOUNT_EMAIL` and `ACCOUNT_PASSWORD` into the current shell from a password manager or a secure prompt. Use a password of at least 12 characters. Run this once to create the owner.

```sh
docker compose exec -T -e ACCOUNT_EMAIL -e ACCOUNT_PASSWORD blua \
  node --import tsx apps/private/src/provision.ts --owner
unset ACCOUNT_PASSWORD
```

Open `http://localhost:8080/account`, sign in and choose **Open admin**.

## Connect an article

1. In **Settings → Sites**, add a site such as `garden`. Allow the article’s exact origin, for example `http://localhost:3000`. Match its scheme, hostname and port.
2. Open **Components**, select the site and enter a permanent page key such as `spring-swallows`.
3. Open **Embed code** and paste the HTML below the article. Load it from the registered origin and post a comment with a nickname.
4. Reload to check that the comment persists. With manual review enabled, publish it in **Comments**, then open the article in a second browser.

For a public installation, switch from loopback to an HTTPS gateway. [Hosting and storage](/docs/operations/hosting) covers the reverse proxy, PostgreSQL and Workers setups.

Source: https://blua.pwp.sh/docs/en/
