What is BookStack?
BookStack is a wiki people actually enjoy using: content is organized into shelves, books, chapters, and pages, with a friendly WYSIWYG editor (markdown too), full-text search, draw.io diagrams, page revisions, roles and permissions, and an API. It is the calm, approachable alternative to Confluence.
It is a Laravel app backed by a self-hosted MariaDB. The LinuxServer image listens on port 80 with no env var to change it, so this template uses a thin wrapper that patches the nginx config to serve port 5000. Uploads and config sit on one volume, or move them to a Lyngbak Bucket to keep the app near-stateless.
The case for self-hosting is the usual per-seat story: documentation tools bill per person every month. BookStack is one deployment for the whole team, with no per-seat fee and the content in a MySQL database you own and can back up like any other.
What you get
- Shelves, books, chapters, pages - structure that makes sense
- WYSIWYG and markdown editors, draw.io diagrams
- Full-text search, page revisions, roles and permissions
- Self-hosted MariaDB; optional Lyngbak Bucket for uploads
- OIDC / LDAP / SAML SSO when you want it
- MIT-licensed, no per-seat metering
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
bookstack | wiki (Laravel + nginx, :5000) | yes |
db | MariaDB 11 container (content) | no |
Before you deploy
APP_KEYLaravel key (base64:...), pinned - changing it breaks encryption
APP_URLthe https domain, matched exactly (no trailing slash)
Sizing and billing
A PHP-FPM + nginx app is comfortable in 1 GiB. Content lives in MySQL; uploads on the config volume (or a Bucket with STORAGE_TYPE=s3). Change the default admin on first login.
A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 9.77 GiB of volumes cost $0.15 per GiB a month ($1.47/mo) for as long as they exist. One workspace can use both. See pricing
Compared with the managed service
| Service | Plan | Price | Includes |
|---|---|---|---|
| Notion | Business | $200/mo | $20/seat/mo at 10 seats |
| Confluence | Standard | $60/mo | ~$6/user/mo at 10 users |
BookStack is free software with no per-seat metering. Prices from each vendor's pricing page, June 2026.
Run it locally first
The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.
Questions
What does this save vs Confluence?
Confluence Standard prices per user per month, so the bill climbs with headcount. BookStack is one deployment for everyone, with no per-seat fee and the content in a MySQL you control.
Can uploads go to object storage?
Yes. Set STORAGE_TYPE=s3 plus the STORAGE_S3_* variables to keep images and attachments in a Lyngbak Bucket. That leaves only the MySQL database as state and makes redeploys clean.
Why the wrapper, and what about the default admin?
The image’s nginx listens on port 80 with no env var, so a thin wrapper patches it to port 5000. On first login change the default admin ([email protected] / password) immediately.