Skip to content

Self-host BookStack

updated Jul 2026prices checked · Jul 2026Install verified on Ubuntu 26.04 · Sep 2026 · how we test
We earn commissions when you shop through the links below. Full disclosure →

A simple, genuinely open-source documentation wiki organized into shelves, books, and pages — easy to run and easy for non-technical teams to use.

Key facts

CategoryWiki & docs
LicenseMIT
StackPHP, Laravel
Min RAM512 MB
Official imageno
Measured idle RAM93 MB
Difficulty
Our recommendation

Pick BookStack when a non-technical team has to keep documentation alive: content lives in books, chapters and pages, the page editor is a plain WYSIWYG with an optional Markdown editor instead, and roles, permissions and built-in MFA come in the MIT-licensed core. It is a classic PHP + MySQL/MariaDB app, so it runs happily on 512 MB — but the Docker images are community-maintained, not the project's own. If you want a Notion-style real-time editor, look at Docmost or Outline instead.

Follow the BookStack deploy guide →

What you need

  • Any VPS with at least 512 MB of RAM
  • A domain you control — most self-hosted setups need HTTPS in front of them
  • Under an hour if you've used Docker before
Where to host itaffiliate disclosure
Hetzner Cloudrun it on
From $23.59/mo · 2 vCPU / 4 GB / 80 GB · EU + US
Get Hetzner Cloud (opens in new tab)
Kamaterafree trial
From $4/mo · 1 vCPU / 1 GB / 20 GB · US + EU + Asia
Start free on Kamatera → (opens in new tab)
DigitalOceanalso works on
From $6/mo · 1 vCPU / 1 GB / 25 GB · US + EU + Asia
Deploy on DigitalOcean → (opens in new tab)

Paid link — we earn a commission if you shop through it.

Install with Docker Compose

Save this as compose.yml and run docker compose up -d:

# BookStack + MariaDB (linuxserver image)
services:
  bookstack:
    image: lscr.io/linuxserver/bookstack:latest
    ports: ["6875:80"]
    environment: { APP_URL: http://SERVER_IP:6875, DB_HOST: db, DB_USER: bookstack, DB_PASS: secret, DB_DATABASE: bookstack }
  db: { image: lscr.io/linuxserver/mariadb:latest }
# docker compose up -d  →  http://SERVER_IP:6875

What you take on

BookStack is one of the calmer wikis to operate, but four things in its own documentation shape how you run it:

non-negotiableThere is no official Docker image. The installation docs list the LinuxServer.io image (the one in our snippet) and solidnerd's as community options; upstream's own paths are the git-based manual install and its Ubuntu scripts. The image tracks BookStack releases on its maintainer's cadence, not the project's.
non-negotiableIt wants MySQL >= 8.0 or MariaDB >= 10.6 — the only databases the requirements page lists — plus PHP >= 8.2. Budget for the database container alongside the app.
non-negotiableReleases are dated and do raise floors: v25.02 moved the PHP minimum to 8.2 and v25.12 raised the MySQL/MariaDB minimums, with the permission system restructured more than once. The update docs say to back up the database and uploads before every update and to check the version-specific instructions for the version you are moving to.
non-negotiableA restore needs more than the database dump: .env, public/uploads, storage/uploads and themes all have to be in the backup, per the backup-and-restore docs.
non-negotiableThe 512 MB figure is our estimate for the app and MariaDB together; the installation docs publish no RAM requirement.

An alternative to

Head-to-head

More in Wiki & docs

Wiki & docs

Docmost

A collaborative wiki and documentation tool that positions itself as an open-source alternative to Confluence and Notion: real-time co-editing, spaces, groups and permissions, comments, page history, search, attachments, and built-in Draw.io, Excalidraw, and Mermaid diagrams. The core is AGPL-3.0 and runs as one Node.js container beside PostgreSQL and Redis; Bases (databases), SSO, AI features, audit logs, and SCIM are licensed Business/Enterprise features.
TypeScriptNode.jsPostgreSQLRedis
easyRead guide →
Wiki & docs

DokuWiki

A long-lived PHP wiki engine that stores pages as plain text files — no database to run, back up, or migrate. The project's own Docker image (a PHP + Apache container with a single storage volume) is the whole install; a web installer configures the wiki on the first visit, and the plugin and template ecosystem is where most of its features live.
PHPApache
easyRead guide →
Wiki & docs

MediaWiki

The PHP wiki engine behind Wikipedia, licensed GPL-2.0-or-later and built for large public knowledge bases: wikitext markup, categories, templates, full revision history, and a vast extension ecosystem. It runs on MariaDB/MySQL (recommended), PostgreSQL, or SQLite, and its own documentation recommends no Docker image for third-party production use — the Docker Hub image is community-maintained and the install still ends with you saving a generated LocalSettings.php.
PHPMariaDB
moderateRead guide →
Wiki & docs

Outline

A polished, real-time collaborative team knowledge base with a great editor and search. Heavier to run, but the closest self-hosted feel to Notion.
TypeScriptNode.js
moderateRead guide →

We use analytics cookies (Google Analytics, PostHog) to see which guides are useful. No ad networks, no cross-site tracking. See our privacy policy.