Self-Hosting Guide
Complete guide to self-hosting Bellamy Book on your own server using the self-host kit (the standard dockerPublish folder): Docker Compose, pre-built images, and one .env file. No application source code required. The installation guides below are the canonical instructions for downloading the kit and self-hosting.
If you are evaluating BellamyBook as a self-hosted social network or planning to build your own platform for a community, start with that overview—then return here for deployment steps.
Can I self-host from this kit alone?
Yes. Get the kit by cloning the project repository and using the dockerPublish folder (or a release package that includes it). If you have that folder (with docker-compose.yml, .env.example, and config directories), you can:
- Copy
.env.exampleto.envand set your domain, secrets, and passwords. - Create the MongoDB keyfile (one command).
- Run
docker compose pull && docker compose up -d.
The docs and the kit are enough to go from zero to a running instance. Optional services (mail, CAPTCHA, Google Login, video calls) have step-by-step “how to get credentials” in their config pages.
Official repository
Start from the official repository: BellamyBook on GitHub. Clone the project, copy .env.example to .env, update your values, then run with Docker Compose per the installation guides.
Overview
Self-hosting gives you:
- Full control over your data
- Your own domain and branding
- Storage (required): MinIO is the default for self-host. You must configure MinIO credentials (
MINIO_ROOT_USER,MINIO_ROOT_PASSWORD) andMinio__PublicUrlin.envso the app can store and serve avatars, posts, and media. Alternatively use R2. Optional: SMTP, Turnstile, Google Login, LiveKit - One compose, one
.env— no build step
Installation (this kit)
| Guide | When to use it |
|---|---|
| Self-Host with Pre-Built Images | You have only the self-host kit — use this. No source code. |
| Test the stack on your Mac | Run the same stack locally (Mac or any machine) before deploying — no server or domain needed. |
| Make sure Traefik works when you deploy | Checklist so Traefik routes correctly on your server (hostnames, DNS, ports, HTTPS). |
| Docker Compose (full project) | You have the full Bellamy Book source code and want to run the full stack from source. |
| Manual Installation | You want to install without Docker. |
Requirements
For the full stack (API, frontend, admin, workers, databases):
- CPU: 8+ cores
- RAM: 16GB+
- Storage: 200GB+ SSD
- Software: Docker and Docker Compose
For local testing with fewer services, 3–5 cores and 6–10GB RAM can be enough.
Quick start (self-host kit)
If you have only the self-host kit (the folder with docker-compose.yml):
- One env file: Copy
.env.exampleto.env. SetDOCKER_REGISTRY,IMAGE_TAG, your domain URLs, and all passwords. Ignore.env.frontend.exampleand.env.admin.example— they are for image builders. See Three environment files. - MongoDB keyfile:
openssl rand -base64 756 > mongo-keyfile && chmod 600 mongo-keyfile(in the folder that containsdocker-compose.yml). - Run:
docker compose pull && docker compose up -d. The database app runs automatically. - Access: Your configured URLs, or without Traefik: Frontend http://localhost:8081, Admin http://localhost:8084, API http://localhost:5000.
Full step-by-step: Self-Host with Pre-Built Images.
Configuration
After the stack is running, configure as needed:
| What | Guide |
|---|---|
| Environment variables (passwords, URLs) | Environment |
| JWT (required for login) | JWT Configuration |
| Database (PostgreSQL, MongoDB, Redis) | Database |
Storage (MinIO default — configure credentials and Minio__PublicUrl when self-hosting; or R2) | Storage |
Optional (with “how to get credentials” steps):
| What | Guide |
|---|---|
| Mail (password reset, notifications) | SMTP (Mail Server) |
| CAPTCHA (login/register) | Turnstile |
| Sign in with Google | Google OAuth |
| Voice and video calls | LiveKit |
| R2 (object storage) | R2 Setup |
| MinIO security | Storage — MinIO bucket policies |
Maintenance
Support
- Troubleshooting — Common issues and fixes
- Installation (pre-built images) — Full walkthrough
Next steps
- Self-Host with Pre-Built Images — Step-by-step installation
- Environment Configuration — All variables and checklist