Skip to content

docs: restructure self-hosting into modular sub-pages with architectu…#615

Open
Tanmaycode1 wants to merge 2 commits intodevfrom
docs/self-hosting-restructure
Open

docs: restructure self-hosting into modular sub-pages with architectu…#615
Tanmaycode1 wants to merge 2 commits intodevfrom
docs/self-hosting-restructure

Conversation

@Tanmaycode1
Copy link
Copy Markdown
Contributor

Description

Restructures the self-hosting documentation from a single monolithic page into a modular, navigable section.

Changes:

  • Rewrote self-hosting.mdx as a concise overview page with an architecture diagram, data flow, and quick start commands
  • Added 7 new sub-pages: requirements, docker-compose, environment, configuration, user-management, production, troubleshooting
  • Updated navigation.ts to expose all sub-pages in the sidebar under a collapsible Self-Hosting group with an explicit Overview entry
  • Content verified against docker-compose.yml, .env.example, INSTALLATION.md, and docker-compose.dev.yml in the monorepo

New structure:

@Tanmaycode1 Tanmaycode1 requested review from hadarishav and nik13 April 27, 2026 14:25
- Add ## About as first H2 to all 8 self-hosting pages. Other doc categories
  (dataset, evaluation, observe, error-feed) have 100% compliance with this
  convention; this brings self-hosting in line.
- Add ## Next Steps card group to the 7 sub-pages that were missing it.
- Rename ## Guides → ## Next Steps on the hub page for consistency.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@khushalsonawat khushalsonawat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check the comments and revisit the doc once

Comment thread src/lib/navigation.ts
title: 'Self-Hosting',
badge: 'New',
items: [
{ title: 'Overview', href: '/docs/self-hosting' },
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where will this point to? There is no such file as self-hosting. Test the navigation once


## About

Configure the moving parts that aren't covered by `.env` alone: provider entries in the LLM gateway's `config.yaml`, the PeerDB Postgres → ClickHouse replication mirrors, and Temporal worker concurrency.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change this line. Complete the configuration or something. Also, this must be mentioned in the appropriate place where it is visible to public that gateway needs additional configuration


First boot builds from source (~10–15 min). When the backend logs `Application startup complete`:

- **Frontend** — [http://localhost:3031](http://localhost:3031)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

incorrect link: https://localhost:3000 if raised using docker compose.

docker compose logs -f backend
```

Starts all 21 services. Frontend binds on `0.0.0.0:3031`; all data stores bind on `127.0.0.1`. For production, put a reverse proxy (Caddy, nginx, Traefik) in front for HTTPS.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Port for frontend is 3000 via docker compose. If they run separately, it's via port 3031

| Per-queue workers | 6 workers (`worker-default`, `worker-tasks-s`, `worker-tasks-l`, `worker-tasks-xl`, `worker-trace-ingestion`, `worker-agent-compass`) instead of one all-queue worker |
| Public DB ports | Postgres, ClickHouse, Redis, MinIO, Temporal all bind on `0.0.0.0` for host tool access |
| Temporal UI | [http://localhost:8085](http://localhost:8085) |
| `FAST_STARTUP=true` | Migrations skipped on restart — run manually: `docker compose exec backend python manage.py migrate` |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The command that I use is: docker compose exec -it backend bash python manage.py migrate. Just verify if the said command works


All configurable. See [Requirements → Ports reference](/docs/self-hosting/requirements#ports-reference) for the full table with defaults and exposure scope.

To run two stacks side-by-side: `docker compose --env-file .env.stackb -p stackb up -d`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no clue about this command.


| Service | Default | Exposed to | `.env` key |
|---|---|---|---|
| Frontend | `3031` | `0.0.0.0` | `FRONTEND_PORT` |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3000 for frontend

docker compose restart backend
```

Then sign up via [http://localhost:3031](http://localhost:3031).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

localhost:3000

"
```

Log in at [http://localhost:3031](http://localhost:3031) with those credentials.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

```
| Service | URL |
|---|---|
| Frontend | http://localhost:3031 |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants