Sign inSign up

[Open Source] BookStack: A Private Internal Knowledge Base for Small Teams

Open SourceInternal Wiki
2026-11-22 06:37 0 views • 0 downloads Docker · ~500 MB
[Open Source] BookStack: A Private Internal Knowledge Base for Small Teams

Overview

BookStack is a clean open-source knowledge base that organises documentation with a familiar hierarchy: shelves, books, chapters and pages. It supports WYSIWYG and Markdown editing, built-in image management, full-text search and role-based permissions. It is far lighter than Confluence and far more reliable than a folder of Word files, making it a practical place for a small team to store policies, processes, FAQs and project lessons.

bookstack main interface screenshot

Why it fits a small business

The most valuable asset in many companies is knowledge about how things are done. If it lives only in a senior employee's head, it disappears when that person leaves. BookStack gives that knowledge a clear home: anyone can edit a page, images are dragged straight in, and search finds old decisions in seconds. An owner can keep SOPs, quoting rules and after-sales scripts in one place so new staff follow the same process without constant verbal explanation. Revision history makes experimentation safe because earlier versions can be restored.

What you can do

  • A four-level content hierarchy that matches how people think about documentation
  • Two editing modes: WYSIWYG for non-technical staff and Markdown for engineers
  • An image manager that stores uploads locally and reuses them across pages
  • Full-text search over titles and bodies with tag and author filters
  • Revision history for every page with rollback
  • Users and roles controlling who can view, create, edit or administer
  • LDAP, SAML and OIDC single sign-on
  • APIs and exports to PDF, HTML and Markdown
bookstack feature screenshot

Stack and license

BookStack uses PHP with Laravel and a Vue frontend, backed by MariaDB or MySQL. It is MIT licensed, so commercial use and modification are straightforward. Development has moved from GitHub to Codeberg, with the GitHub repository kept as a mirror, while the widely used Docker images are published and maintained by LinuxServer.io. That combination gives the project a stable publishing path for teams that depend on containers. Versioned tags such as v0.30.4-ls112 make upgrades predictable.

Deployment notes

Use a LinuxServer image with MariaDB in Compose. APP_KEY must be generated yourself and kept safe; losing or changing it breaks encrypted content and sessions. APP_URL should be the exact external address or generated links point to the wrong host. The default administrator is admin@admin.com with password password, which must be changed immediately. Typical issues: the database needs utf8mb4 for Chinese titles, the proxy must forward X-Forwarded headers or login loops, and incorrect PUID/PGID values leave the upload directory unwritable. Increase the proxy body size if images fail to upload.

  • A login loop usually means APP_URL differs from the proxy address or headers are missing.
  • Chinese content failing to save indicates a database charset other than utf8mb4.
  • Upload errors with HTTP 413 require increasing the proxy client_max_body_size.
  • Missing styles after an upgrade are generally a stale cache; clear it and restart.
bookstack reporting screenshot

Resource footprint

Application plus database uses about 500 to 800 MB of memory, so 1 CPU / 2 GB comfortably serves a dozen people. The image is around 500 MB. Growth mainly affects the uploads directory, which deserves disk monitoring and regular backups. For Chinese teams replacing a paid Wiki, it is a pragmatic and low-risk choice.

Before you deploy

Write down the few facts that will be used every day before creating containers: the people who need access, the names of the main business objects, and the one workflow that must work on launch day. Most failed self-hosting projects do not fail because the software is broken; they fail because master data is messy and nobody agreed on who owns each step. Prepare persistent volumes, a final domain name and a working SMTP account now, since all three are painful to retrofit after staff have started using the system. If the tool will be reachable from the internet, plan for HTTPS from the first hour rather than as a later improvement.

Data organisation

Start small and real. Import a handful of current records rather than a perfect but imaginary dataset, then walk one complete cycle from creation to report. Give fields short, familiar names and resist adding custom fields until somebody asks for the same filter twice. Define roles at the same time as data: an owner who can see everything, a small group that can edit, and everyone else with read-only or self-service access. Write the three or four rules that matter most into a one-page guide, because a short guide that people read is more useful than a long manual that nobody opens. Review the structure after a month and remove fields that nobody uses.

Backup, upgrades and security

Every system in this batch stores its real value in two places: the database and the uploaded files. Back up both on the same schedule, keep one copy away from the host, and perform a restore drill at least once a quarter. Before replacing an image, read the release notes, take a fresh backup and, where practical, rehearse the upgrade on a test instance. Use one account per person, disable accounts immediately when someone leaves, and keep the administrator login for administration rather than daily work. Check public links and API tokens periodically; forgotten shares are a common source of leaks. HTTPS, strong passwords and a short access review every quarter are enough to protect a small business without building a security programme.

Getting started

  1. Prepare persistent volumes, the database, the final HTTPS address and the pinned image tag.
  2. Start the stack and complete the first-run wizard or site creation step before inviting anyone.
  3. Enter a small set of real master data and run one complete workflow to the final report.
  4. Assign roles, configure email notifications and document the three steps people will use daily.
  5. Schedule backups, rehearse a restore and only then make the system the team's default place to work.

Pitfalls

  • A login loop usually means APP_URL differs from the proxy address or headers are missing.
  • Chinese content failing to save indicates a database charset other than utf8mb4.
  • Upload errors with HTTP 413 require increasing the proxy client_max_body_size.
  • Missing styles after an upgrade are generally a stale cache; clear it and restart.

Who should use it

Teams wanting a light, structured place for policies, customer records, technical notes and retrospectives. It is not a real-time collaborative editor or a project manager; use Nextcloud documents or a dedicated tool for those. Treat it as the company manual and its value compounds over time.

A typical day

The pattern is similar across these tools. In the morning someone opens the system instead of a chat thread, because that is where the current state lives. Work is recorded once, at the moment it happens, and the record carries enough context for a colleague to continue. During the day, filters and views answer the small questions that used to interrupt other people: what is waiting, what is overdue, and who owns the next step. At the end of the day or week, a report is generated from the same records rather than rebuilt by hand. That is the practical return on self-hosting: fewer repeated questions, fewer conflicting versions of the truth, and data that remains yours.

Links

Source repository | Container image | Official documentation

Deployment serviceVerified deployable

Having trouble setting up this project?

We have run “[Open Source] BookStack: A Private Internal Knowledge Base for Small Teams” locally and verified that it installs and the admin panel works. We can deploy it to your server.

Starting at
from $149
Estimated time
48 hours
Deployment notes
Compose 编排、MariaDB 初始化、APP_KEY 与默认管理员、HTTPS 反代 / Compose stack, MariaDB init, APP_KEY and admin account, HTTPS proxy
Service details →

WeChat: ITcloub · Bring your own server and domain · Full refund if deployment fails