Which BookStack deployment model fits Docker, Kubernetes or VMs
BookStack publishes official install scripts for Ubuntu 26.04, 24.04 and 22.04 but no official Docker images, so the deployment choice depends on who owns the container build and the runtime. If your team wants the documented install path, a virtual machine is the default fit. The install script targets a supported Ubuntu release, and your team owns the web server, PHP, database and patching under the same routines it applies to other servers. Docker suits a single host run by people who already maintain container images. In that case you will rely on a community image, such as the LinuxServer.io setup that BookStack's documentation points to, and you own how that image is pinned, rebuilt and updated. Confirm the image's maintenance model before you depend on it.
Kubernetes fits teams that already run a cluster with settled standards for persistent storage, backup and monitoring. BookStack keeps its content in a MySQL or MariaDB database, and the stored files must survive pod restarts, so the database and file storage decisions matter as much as the deployment object. Every option shares the same platform requirements: PHP 8.2 or later and MySQL 8.0 or MariaDB 10.6 or later. Before you commit, check that your cluster can run PHP 8.2 workloads, that your backup tooling captures the database and stored files together, and that your monitoring covers both the web tier and the database. A team without these standards in place should expect the extra work to land on BookStack's container build and storage claims.
BookStack is MIT licensed, so the software itself carries no license fee under any of the three models. Paid support plans and sponsorship are available from the project, and those are optional. Before you plan around a version, confirm whether a release newer than v26.09.1 exists, since v26.09.1 was published on September 29, 2026. The BookStack releases page is the place to check. Pin the version you test, record the PHP and database versions it runs on, and rehearse each upgrade in a non-production copy first. These habits apply to a VM, a container host and a cluster alike.
BookStack Docker, Kubernetes and VM side by side
This table compares how BookStack runs on a single Docker host, in a Kubernetes cluster and on virtual machines built with the official installation scripts. Read each row as a question your team must answer: who maintains the packaging, where the data lives and what a restore covers. The main takeaway is that the official path is the VM install, while Docker and Kubernetes depend on community or team-built images whose maintainers, update cadence and PHP and database versions you must confirm.
| Factor | Docker containers on one host | Kubernetes cluster | Virtual machines (official scripts) |
|---|---|---|---|
| Packaging and official support | No official Docker image. Confirm maintainer, update cadence and PHP and database versions for any community image such as LinuxServer.io. | Relies on a community or team-built image. Confirm maintainer, update cadence and PHP and database versions before adopting it. | Official install scripts for Ubuntu 22.04, 24.04 and 26.04, per BookStack's installation docs. |
| Database and uploaded files | MySQL 8.0 or MariaDB 10.6 or later runs separately. Uploads need a persistent volume that you mount and back up. | Use a managed or operator-run MySQL or MariaDB. Uploads need a PersistentVolume with a tested backup path. | Database and uploads sit on the VM's disks, under the paths the install sets. Confirm those paths before you design backups. |
| Availability options | One host is a single point of failure. Restart policies aid recovery but do not provide failover, so plan for a rebuild. | Several replicas are possible only if sessions, uploads and database access are shared. Confirm storage support with your platform team. | Usually one application VM and one database host. Redundancy and failover are a design you build and test yourself. |
| Upgrade path | Check the image's upgrade steps first, since the maintainer sets the PHP and database versions it ships. | Pinned image tags change with each bump. Confirm PHP and database versions per tag and keep a tested rollback plan. | Follow the official upgrade steps on a cloned VM first, with a snapshot taken before production changes. |
| Backup scope | Back up the database dump, the uploads volume and the container configuration. Test restores on a second host. | Back up the database, persistent volumes, Secrets and deployment manifests. Test restores in a separate cluster. | Back up the database, the uploads directory and the application configuration file. Restore tests are your responsibility. |
| Sizing inputs | Host capacity shared by the app and database. Attachment volume and concurrent editors are the main inputs. | Requests and limits per pod, node capacity and storage throughput. Confirm figures with a load test on your data. | VM size for PHP, web server and database. Attachment volume and concurrent users drive the load. Measure with a pilot. |
| Operating skills | Container runtime, Compose or equivalent, Linux administration, and troubleshooting PHP and MySQL inside the image. | Kubernetes operations, storage, ingress, secrets management and database operations, on top of BookStack administration. | Linux administration, PHP and web server configuration, and MySQL or MariaDB administration by the team that runs it. |
| Cost drivers | Host and storage, plus staff time to vet and maintain a community image. Upgrade time recurs with each release. | Cluster platform, storage and staff time to operate the cluster. Ask whether a cluster already exists before adding cost. | VM hosting, storage and backup retention recur. Patching time for the OS, PHP and the database recurs with each release. |
What each component means in a container, cluster or VM
BookStack is a PHP application backed by a relational database, with uploaded files and sign-in settings that must survive restarts. The platform you choose changes who owns each piece, how it is restarted and how it is restored. Check each card against the installation docs before you size the hosts.
PHP application tier
The application tier is a PHP runtime, a web server and the BookStack code with its configuration. On a Docker host it is a container, and because BookStack does not publish official Docker images, you must choose and maintain a community image such as the LinuxServer.io build. In Kubernetes it becomes a Deployment, and scaling it out only works once the upload storage is settled. On a VM, the official install scripts for supported Ubuntu releases set up the stack directly. Confirm the supported PHP and web server versions in the installation docs before you pick a base image.
- Minimum PHP version
- 8.2
MySQL or MariaDB database
The database holds the content and account records, so it is the component you can least afford to lose. On Docker, running it as a container means you own the volume, the upgrade path and the backup job. In Kubernetes, a managed database service or a database operator often carries that operating load better than a database pod you run yourself. On a VM, it is a service you patch and back up on the same host or a separate one. Confirm the supported MySQL and MariaDB versions and the character set settings in the installation docs before you choose a topology.
- Minimum MySQL version
- 8.0
- Minimum MariaDB version
- 10.6
Uploads and local state
Uploaded files and any other local state sit outside the database and must survive container or pod replacement. On Docker, that means a named volume or bind mount on the host. In Kubernetes, it means a PersistentVolumeClaim, and its access mode decides whether more than one pod can mount it. On a VM, it is a directory on the server disk or a network share. Settle whether more than one application instance can share upload and session storage before you size the platform. Confirm in the installation docs where uploads and sessions are stored by default, which paths can move, and whether multiple instances are supported.
Identity provider sign-in
BookStack supports OIDC, SAML2 and LDAP sign-in, and built-in multi-factor authentication can be enforced per role. On Docker, identity settings are environment values or config files that you must inject securely, and the callback URL must match the public hostname. In Kubernetes, these values usually come from Secrets, and a change to the provider settings can require a rolling restart. On a VM, they live in the application configuration file, so file permissions and secret handling fall to your team. Confirm which protocol your provider supports, how group or role mapping works and what happens to local admin access if the provider is down.
Reverse proxy and TLS termination
Something must terminate TLS and forward requests to the application, and the public URL setting in BookStack has to match what users type in the browser. On Docker, this is usually a separate proxy container or a proxy on the host. In Kubernetes, an ingress controller or gateway typically holds the certificates, and the pods only see internal traffic. On a VM, a web server or proxy on the same host often handles this role. Confirm the forwarded header handling, the application URL setting and the certificate renewal process in the installation docs before go-live, since a mismatch can break sign-in redirects and links in notifications.
Backup set
A BookStack backup is more than a database dump. It must cover the database, the uploaded files and the configuration that tells the application where those files live. On Docker, the set is the volumes, the database export and the compose or run definitions. In Kubernetes, you also need the manifests, the Secrets and volume snapshots or a backup tool that supports your storage class. On a VM, it is usually file copies of the upload directory plus a logical database dump taken at a consistent point. Test a restore on a separate host, because a missing uploads directory leaves a working database with broken attachments.
How requests, identity and backups move through the deployment
The diagram starts with users reaching a reverse proxy or load balancer, which forwards requests to the BookStack application, both inside the platform boundary. BookStack reads and writes content in MySQL or MariaDB and keeps uploads in file storage, both inside the same zone. Sign-in leaves that zone over OIDC, SAML2 or LDAP to the identity provider. Database and file backups go to a backup target outside the application zone. In the Docker and Kubernetes variants, the community or team-built image is a separate supply chain edge, so check who builds it and how it is pinned. Confirm that restores work from the backup target alone.
Request, identity and backup paths with the image supply chain.
How the install route changes upgrades and patching
On a virtual machine, the official route sets the upgrade baseline. BookStack publishes installation scripts for Ubuntu 26.04, 24.04 and 22.04, so your team owns one host, one operating system and one PHP and database stack to patch. There is no container image to track, which keeps the number of moving parts small. Before any change, read the release notes for the version you plan to run. The latest releases were v26.09, published on September 24, 2026, and v26.09.1, published on September 29, 2026. Check the BookStack releases page for each new version, and record which release runs on each host so that a rollback has a known target.
Docker and Kubernetes routes depend on an image that BookStack does not publish. The installation documentation states that the project does not provide official Docker images and points to community setups such as LinuxServer.io. Before each change, the team must verify which image and tag it runs, who maintains that image, how quickly it follows upstream BookStack releases, and whether the base image's operating system packages are patched. A tag such as latest can change without any edit to your manifests, so pin a specific tag and digest and treat every bump as a change request. Ask the image maintainer how they build, test and publish new tags. In a Kubernetes cluster, record the image version, the database version and the storage claim as separate items in the change record.
Run the same checks before any release, whatever the route. Confirm that the PHP runtime is 8.2 or later and that the database is MySQL 8.0 or MariaDB 10.6 or later, because an image or VM that falls behind these minimums will fail at startup. Confirm that the base operating system has its security updates applied, and record the kernel and package versions with the change. Then rehearse the release, such as v26.09.1, in staging before production. Restore a recent production backup of both the database and the uploaded files, apply the update there, and test sign-in through your OIDC, SAML2 or LDAP provider, enforced multi-factor authentication for each role, and access to pages on each shelf. Promote the change only after the restore and the sign-in tests pass, and keep the pre-change backup until the release is confirmed in production.
Who runs upgrades, backups and monitoring under each model
This table shows who owns upgrades, backups, restore tests, monitoring and patching for BookStack on Docker, Kubernetes and virtual machines. Read each row as a handoff question: the team named owns the task, and the others must still provide the platform underneath. Recovery time and recovery point targets are not set here, so define them with your business owners before choosing a model.
| Task | Docker host | Kubernetes | Virtual machines |
|---|---|---|---|
| Upgrade steps | Your team picks and pins a community image, such as LinuxServer.io, then tests the new tag before rollout. | Platform team updates the chart or manifest version, rolls the deployment and reviews any migration step. | Server admin applies the BookStack update on the host, following the upstream update steps in a change window. |
| Backup scope (database, uploads and configuration) | Your team backs up the MySQL or MariaDB database, the uploads volume and the environment or Compose config. | Platform team backs up the database, the persistent volume for uploads, and the secrets and config maps. | Server admin backs up the database, the uploads directory and the BookStack config file on the host. |
| Restore testing | Team restores into a separate container and database to confirm image, volume and config match production. | Team restores into a separate namespace and checks that volume and secret restores work end to end. | Team restores to a spare VM and confirms PHP 8.2 or later and database versions match production. |
| Logs and monitoring | Team ships container logs and host metrics to its monitoring stack and sets alerts for the BookStack container. | Platform team owns cluster logging and metrics, while the BookStack owner sets application health checks and alerts. | Server admin owns system, web server and PHP logs, plus host metrics agents and their alert rules. |
| Base OS and runtime patching | Host admin patches the Docker host OS; the image owner pulls or rebuilds images with updated PHP and base layers. | Platform team patches nodes and the cluster; the image owner rebuilds images for PHP and base OS updates. | Server admin patches the OS, PHP, web server and database packages on each VM on a fixed schedule. |
| Skills needed | Container basics, Compose or an equivalent tool, Linux host administration and database backup skills. | Kubernetes operations, storage classes, secrets handling, Helm or manifests, plus PHP and MySQL knowledge. | Linux administration, web server and PHP configuration, database administration and standard patch management. |
Which team should choose each BookStack deployment model
A small IT team without container experience usually fits a virtual machine. BookStack provides official installation scripts for Ubuntu 26.04, 24.04 and 22.04, and the installation guide covers the PHP 8.2 or later requirement and the MySQL 8.0 or MariaDB 10.6 or later database. This model keeps every component visible to the people who patch it, and it avoids learning a container runtime during the first deployment. The choice changes if your organization already standardizes on containers and has an approved image for them.
- Operating system patching: The team applies Ubuntu security updates and schedules reboots on the host it builds.
- PHP and database upgrades: The team tracks the PHP minimum and the database version, and tests each BookStack release against both before it reaches production.
- Backups: The team backs up the database and the uploaded files together, then restores them to a test host on a set schedule.
- TLS and the web server: The team issues and renews certificates and configures the web server in front of the application.
Check whether the team can run all four tasks without depending on one person, and confirm which Ubuntu release your security baseline allows before you select the installation path.
A platform team that already runs Kubernetes with standard storage, backup and monitoring can place BookStack in that cluster, because scheduling, storage classes and alerting already exist. BookStack does not publish official Docker images, so the team must choose and vet a community image, such as the LinuxServer.io setups that the installation documentation points to, before it enters the cluster. The model fits only if that image meets the PHP 8.2 and database requirements and passes the team's sourcing rules. The choice changes to a virtual machine if the image source cannot be approved or the cluster cannot give the database the storage and failover guarantees it needs.
- Image provenance: The team pins an image digest, records where it came from and owns the process for rebuilding or updating it.
- Database placement: The team decides whether MySQL 8.0 or MariaDB 10.6 or later runs as an operator-managed service, a StatefulSet or an external database, and owns the backup and failover for that choice.
- Uploaded files: Persistent volume claims must hold the uploaded content, and the team tests that a restore brings back both pages and files.
- Monitoring and probes: The team wires health checks, log collection and alerts into the existing monitoring stack.
- Upgrades and rollback: Image and chart updates move through the team's normal release path, with a rollback plan for each BookStack version.
Before committing, confirm that your storage class, backup tooling and database operator all cover the BookStack data set, and that the chosen image passes your security team's review.
A regulated team that must show documented host controls to an assessor often fits a virtual machine, because the controls an assessor asks about, such as OS hardening, patch records, administrative access and log retention, sit on one host that the team can document setting by setting. The team should agree with the assessor which evidence formats they accept before it selects a model. A Kubernetes cluster can also support this evidence if the team can show the cluster, image and storage controls in the same detail, so confirm that path with the assessor first. This page does not state what any assessor or auditor will accept.
- Host baseline: The team writes and maintains a hardening baseline for the operating system, web server, PHP and database, and keeps evidence of each setting.
- Identity and MFA: BookStack supports OIDC, SAML2 and LDAP sign-in and built-in multi-factor authentication that can be enforced per role, so the team documents which roles require it and how enforcement is checked.
- Access review: The team keeps a current list of administrators and the roles that hold each permission, and reviews it on a recorded schedule.
- Patch and backup records: The team keeps dated records of operating system and application updates, along with restore test results.
- Logging: The team defines where web, application and database logs are sent and how long they are kept.
Ask the assessor which evidence formats they accept, then check each BookStack release against the documented baseline before you upgrade, using the BookStack releases page as the source of version changes.
Steps to choose and stand up BookStack on your chosen model
This sequence takes a team from shortlist to a tested BookStack setup on the model it chose. Each step ends with a written output and a named sign-off, so platform, security and operations owners agree on the same facts before production. The steps apply to all three models, and model-specific differences are called out where they change the work.
Confirm PHP and database requirements for your OS
Check BookStack's stated requirements against the operating system and database you plan to run: PHP 8.2 or later, and MySQL 8.0 or MariaDB 10.6 or later. Official installation scripts cover Ubuntu 26.04, 24.04 and 22.04. BookStack does not publish official Docker images and points to community Docker setups such as LinuxServer.io, so a container team must confirm the PHP and database versions inside the image it chooses. The platform owner signs off a one-page requirements sheet listing each version, the OS and the image source. Installation docs
Choose the model that matches team skills
Pick one of the three models based on the skills and standards your team already has. A VM fits teams that run Linux hosts and patch them through standard change control, and it can use the official installation scripts. Docker fits teams that already build, scan and patch container images and can own the community image they select. Kubernetes fits teams that already operate clusters and have a settled plan for persistent storage and database availability. The head of IT signs off a short decision record that names the model, the owner of each host or image, and the standards it must meet.
Build a staging instance and connect sign-in
Build a staging instance on the chosen model, using the same OS, PHP and database versions confirmed in the first step. Connect sign-in through OIDC, SAML2 or LDAP, whichever your identity provider supports, and test it with named accounts across each role. If your policy requires multi-factor authentication for some roles, turn on the per-role enforcement BookStack offers and test that too. The identity or security lead signs off a test record showing successful sign-in, failed sign-in and role mapping for each account type, plus the settings to copy into production.
Test a backup and a full restore
Run a backup from the staging instance and restore it to a separate host or container, then confirm the restored copy works. Check that shelves, books, chapters, pages, users, roles and uploaded files all come back, and that sign-in still works after the restore. Write down each manual step the restore needed, so a runbook can cover it. The service owner signs off the restore log and the runbook, and the security lead confirms that backup storage meets your data handling policy. A backup you have never restored is not yet a tested backup.
Agree the upgrade cadence and release owners
Agree how often the team reviews BookStack releases, and name one owner for each release check: reading release notes, upgrading staging, repeating the sign-in and restore tests, and scheduling the production upgrade. Start from the BookStack releases page, where each version is dated, for example v26.09.1 published on September 29, 2026. The head of IT signs off the written cadence and owner list, and each owner records their check in the release log. Define in advance whether patch releases follow a shorter review path.
Questions buyers ask about BookStack hosting effort and cost
Is Kubernetes worth the extra effort for running BookStack?
It is usually worth it only if your organization already runs Kubernetes and has people who operate it. BookStack is a single PHP application backed by a MySQL or MariaDB database, so most of the extra work on Kubernetes is platform work: manifests, persistent volumes, ingress, certificates and secrets handling. BookStack's installation docs describe official scripts for Ubuntu and point to community Docker setups, so your team would assemble and maintain the Kubernetes layer itself. Those components need patching and review with every cluster upgrade. Confirm with the vendor whether an official container or Kubernetes deployment path exists before you commit. If you do not already run Kubernetes, a Docker host or virtual machine usually leaves fewer moving parts for a small team to own.
Can a team run BookStack on Docker without outside help?
Yes, if someone on the team is comfortable with containers, reverse proxies, databases and upgrades. BookStack does not publish official Docker images, so you would choose a community image, such as the LinuxServer.io setup referenced in the installation docs, and confirm how that image is maintained and how quickly it follows new BookStack releases. Your team would pin a version, configure the database connection and storage volumes, check that the host meets the PHP 8.2 and MySQL 8.0 or MariaDB 10.6 requirements, and decide how backups run. Write down who applies upgrades and who restores from a tested backup. Outside help is most useful for hardening and the operating runbook, which can be scoped as a separate fixed-scope piece of work.
What does a BookStack virtual machine deployment ask of the team?
A virtual machine puts the operating system, web server, PHP runtime, database, TLS certificates, patching and backups in your team's hands, which is the most familiar path if you already run VMs. BookStack's official installation scripts cover Ubuntu 26.04, 24.04 and 22.04, so confirm your release is on that list before you build. Plan for PHP 8.2 or later with MySQL 8.0 or MariaDB 10.6 or later, and check which versions your OS packages supply. Your team will also configure sign-in through OIDC, SAML2 or LDAP, enforce multi-factor authentication for roles that need it, and test restores on a schedule. Ask the vendor for the upgrade steps between major releases and record who runs them and when.
What drives the cost of outside help for a BookStack deployment?
The written scope drives most of the cost, because outside help is paid for the work listed in it. DeployOpen does not publish a price list. Under a fixed-scope engagement, the quote follows from the scope, deliverables and timeline agreed in writing before work starts. Typical components include planning the target platform, installing and configuring BookStack, connecting SSO or LDAP, hardening, backup and restore testing, documentation and handover. Most of this is one-time work, while ongoing support, upgrades and continuous testing are separate retainers. Costs rise with more environments, identity sources, integrations and compliance evidence. They fall when your team supplies access, internal standards and a clear acceptance test. Ask any provider for each deliverable, who performs it, what is excluded and which parts recur. Your own staff time is also a cost.
How long does a BookStack deployment take?
The duration depends on scope, so treat any single number as a starting point and ask for a timeline in writing. The target platform, whether that is Docker, Kubernetes or a virtual machine, changes the amount of build work. The number of identity sources, the need for backup and restore testing, and the number of approval steps in your change process also matter. Internal reviews, network access, certificates and security sign-off often take longer than the installation itself. In a fixed-scope engagement, milestones are tied to deliverables and agreed before work starts. Confirm in your own environment how long change windows are, who grants cloud or data center access, and whether you need a test instance before production. Illustrative example: a team with an existing virtual machine and a working LDAP directory will usually have fewer open items than a team building a new cluster from scratch.
Does BookStack support high availability, and what should I confirm about shared storage and sessions?
Do not assume high availability from the project's public pages. Ask the vendor for a documented multi-node design before you promise it internally. The key questions are where uploaded files are stored, whether every web node reads the same files, and where user sessions live. If uploads sit on local disk, a second node will not see them unless you add shared storage. Confirm session handling as well, since users may be logged out or lose state when requests reach different nodes. The database is another single point of failure unless you run a replicated MySQL or MariaDB setup, so ask which configurations are supported. Test node loss, failover and restore in your own environment before users depend on the service, and confirm that OIDC, SAML2 or LDAP sign-in behaves the same on every node.
How DeployOpen scopes, delivers and supports BookStack deployments
DeployOpen is a Chainscore Labs company that plans, implements, hardens, backs up, upgrades, documents and supports self-hosted open-source platforms inside the client's own infrastructure. For BookStack, that means comparing the runtime options with your team before any build starts, then delivering the chosen one in your cloud account, data center or air-gapped network. Most engagements are fixed-scope, with the scope, deliverables and timeline agreed in writing first.
How we scope
- The written scope names the runtime (Docker, Kubernetes or VMs) and the reasons behind that choice.
- It also covers the database (MySQL 8.0 or MariaDB 10.6 or later), PHP 8.2 or later, and the sign-in method.
- Scope also lists what your team owns after handover, such as upgrades, backups and access reviews.
How we build
- BookStack publishes no official Docker images, so a container build depends on community images that need their own review.
- VM builds can use BookStack's official installation scripts for Ubuntu 22.04, 24.04 or 26.04.
- Each build wires SSO or LDAP sign-in, enforces MFA by role where required, and tests role permissions.
How we hand over
- Deliverables are documented runbooks for the chosen runtime, covering install, upgrade and restore steps.
- Handover includes a configuration record for the database, authentication settings and sizing decisions.
- Acceptance checks are listed in the written scope so both sides agree on what done means.
How we support
- Ongoing support, upgrades and continuous testing can be taken on as a retainer after handover.
- Upgrade planning starts from the release line in use, such as v26.09.1 published September 29, 2026.
- Runtime changes, such as moving from VMs to Kubernetes, are scoped as separate written work.

