---
title: "Deploy BookStack"
description: "Simple, easy-to-use platform for organising and storing information."
category: "CMS"
url: https://railway.com/deploy/bookstack
---

# Deploy BookStack

Simple, easy-to-use platform for organising and storing information.

**[Deploy BookStack on Railway](https://railway.com/template/bookstack)**

- **Creator:** nonzerosum
- **Category:** CMS
- **Total deploys:** 79

## Template content

### MySQL https://devicons.railway.app/i/mysql.svg

- **Image:** mysql:9
- **Start command:** `docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0`

### BucketProxy

- **Image:** ghcr.io/railwayapp/function-bun:1.3.0
- **Start command:** `./run.sh Ly8gaW5kZXgudHN4IChCdW4gcnVudGltZSkKaW1wb3J0IHsgSG9ubyB9IGZyb20gImhvbm8iOwppbXBvcnQgeyBjb3JzIH0gZnJvbSAiaG9uby9jb3JzIjsKaW1wb3J0IHsgUzNDbGllbnQgfSBmcm9tICJidW4iOwppbXBvcnQgeyBzdHJlYW0gfSBmcm9tICJob25vL3N0cmVhbWluZyI7Cgpjb25zdCBhcHAgPSBuZXcgSG9ubygpOwoKY29uc3QgY2xpZW50ID0gbmV3IFMzQ2xpZW50KHsKICBhY2Nlc3NLZXlJZDogQnVuLmVudi5TM19BQ0NFU1NfS0VZX0lELAogIHNlY3JldEFjY2Vzc0tleTogQnVuLmVudi5TM19TRUNSRVRfQUNDRVNTX0tFWSwKICBidWNrZXQ6IEJ1bi5lbnYuUzNfQlVDS0VULAogIGVuZHBvaW50OiBCdW4uZW52LlMzX0VORFBPSU5ULAp9KTsKCmFwcC51c2UoIi8qIiwgY29ycygpKTsKCmFwcC5nZXQoIi8qIiwgYXN5bmMgKGMpID0+IHsKICBjb25zdCBwYXRobmFtZSA9IGMucmVxLnBhdGg7CgogIGlmIChwYXRobmFtZSA9PT0gIi8iKSB7CiAgICByZXR1cm4gYy5ub3RGb3VuZCgpOwogIH0KCiAgY29uc3QgczNmaWxlID0gY2xpZW50LmZpbGUocGF0aG5hbWUpOwogIGlmICghKGF3YWl0IHMzZmlsZS5leGlzdHMoKSkpIHsKICAgIHJldHVybiBjLm5vdEZvdW5kKCk7CiAgfQoKICBjb25zdCBtZXRhID0gYXdhaXQgczNmaWxlLnN0YXQoKTsKCiAgaWYgKG1ldGEudHlwZSkgewogICAgYy5oZWFkZXIoIkNvbnRlbnQtVHlwZSIsIG1ldGEudHlwZSk7CiAgfQogIGlmIChtZXRhLmV0YWcpIHsKICAgIGMuaGVhZGVyKCJFVGFnIiwgbWV0YS5ldGFnKTsKICB9CiAgaWYgKG1ldGEubGFzdE1vZGlmaWVkKSB7CiAgICBjLmhlYWRlcigiTGFzdC1Nb2RpZmllZCIsIG1ldGEubGFzdE1vZGlmaWVkLnRvR01UU3RyaW5nKCkpOwogIH0KCiAgYy5oZWFkZXIoIkNhY2hlLUNvbnRyb2wiLCAicHVibGljLCBtYXgtYWdlPTM2MDAiKTsKCiAgcmV0dXJuIHN0cmVhbShjLCBhc3luYyAoc3RyZWFtKSA9PiB7CiAgICBhd2FpdCBzdHJlYW0ucGlwZShzM2ZpbGUuc3RyZWFtKCkpOwogIH0pOwp9KTsKCkJ1bi5zZXJ2ZSh7CiAgcG9ydDogQnVuLmVudi5QT1JUID8/IDMwMDAsCiAgZmV0Y2g6IGFwcC5mZXRjaCwKfSk7Cg==`
- **Public domain:** Yes

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2.1
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

### Bookstack https://avatars.githubusercontent.com/u/20912696?s=48&v=4

- **Image:** linuxserver/bookstack:25.12.9
- **Public domain:** Yes

## Buckets

- **Bucket**

## Documentation

# Deploy and Host BookStack on Railway

BookStack is an open-source, user-friendly documentation and knowledge-management platform designed to help teams create, organize, and share content. It offers a simple, intuitive interface modeled around Books, Chapters, and Pages, making it easy for anyone—technical or not—to contribute. BookStack aims to provide a powerful yet approachable out-of-the-box experience without requiring extensive customization.

## About Hosting BookStack

Hosting BookStack involves running a PHP/Laravel application backed by a database and optional services like SSO, S3 storage, and caching. A typical deployment includes configuring environment variables, ensuring persistent storage, and managing updates. Hosting on a modern platform like Railway simplifies provisioning infrastructure, scaling, and setup. With managed databases, built-in storage options, and streamlined deployment workflows, Railway removes much of the operational overhead that comes with running a self-hosted documentation system.

## Common Use Cases

* Internal team knowledge bases
* Product or project documentation
* Lightweight wiki or organizational handbook

## Dependencies for BookStack Hosting

* A MySQL-compatible database (MariaDB or MySQL)
* PHP/Laravel runtime with required extensions

### Deployment Dependencies

* BookStack documentation: [https://www.bookstackapp.com/docs/](https://www.bookstackapp.com/docs/)
* Source code and releases: [https://github.com/BookStackApp/BookStack](https://github.com/BookStackApp/BookStack)
* Environment variable reference: [https://www.bookstackapp.com/docs/admin/environment-variables/](https://www.bookstackapp.com/docs/admin/environment-variables/)

### Implementation Details 

```bash
# Example Railway environment variables
APP_URL=https://your-app.up.railway.app
DB_HOST=${{MYSQLHOST}}
DB_PORT=${{MYSQLPORT}}
DB_DATABASE=${{MYSQLDATABASE}}
DB_USERNAME=${{MYSQLUSER}}
DB_PASSWORD=${{MYSQLPASSWORD}}
CACHE_STORE=memcached
SESSION_DRIVER=memcached
```
### Storage

- Images are public and served from a Railway function that allows them to be served from the private bucket. 

- Attachments are private and served through the app and store in the app volume. 

## Why Deploy BookStack on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying BookStack on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.

---


## Similar templates

- [Libredesk - Complete Setup](https://railway.com/deploy/libredesk-complete-setup) — Complete self-hosted omnichannel customer support desk.
- [Paperless-ngx](https://railway.com/deploy/paperless-ngx-3) — Paperless-ngx — document management with OCR and full-text search
- [Instatic CMS - Postgres](https://railway.com/deploy/instatic-cms-postgres) — Design, build and manage powerful static sites from state-of-the-art CMS

Open this page in a browser: https://railway.com/deploy/bookstack
