---
title: "Deploy Bookstack v26 + MariaDB v12"
description: "Deployment of BookStack with Redis caching and MariaDB database."
category: "CMS"
url: https://railway.com/deploy/bookstack-v25-mariadb-v12
---

# Deploy Bookstack v26 + MariaDB v12

Deployment of BookStack with Redis caching and MariaDB database.

**[Deploy Bookstack v26 + MariaDB v12 on Railway](https://railway.com/template/bookstack-v25-mariadb-v12)**

- **Creator:** RedPandaDev
- **Category:** CMS
- **Total deploys:** 9

## Template content

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

- **Image:** redis:8.10.0
- **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://upload.wikimedia.org/wikipedia/commons/d/d2/BookStack_logo.svg

- **Image:** andreidrang/bookstack-railway:26.05.3
- **Public domain:** Yes

### MariaDB https://mariadb.com/wp-content/uploads/2019/11/mariadb-logo-vertical_white.svg

- **Image:** mariadb:12.3.2

## Buckets

- **Bucket**

## Documentation

# Deploy and Host Bookstack v25 + MariaDB v12 on Railway

BookStack v25 is a modern, open-source documentation and wiki platform built with PHP/Laravel. This template includes BookStack v25 with MariaDB v12 for data persistence and Redis for session management and caching, providing a complete self-hosted documentation solution.

## About Hosting Bookstack v25 + MariaDB v12

Hosting BookStack v25 with MariaDB v12 on Railway involves deploying three interconnected services: the BookStack application container, a MariaDB database instance, and a Redis cache server. The template automatically configures all necessary environment variables including secure auto-generated passwords, database connections, and Redis authentication. BookStack uses MariaDB for storing all content (books, chapters, pages, users, and settings) while Redis handles session storage and application caching for improved performance. The deployment requires minimal configuration - Railway handles service orchestration, networking between services, and persistent storage volumes for the database.

## Common Use Cases

- **Team Documentation Hub** - Centralized knowledge base for teams to document processes, procedures, and institutional knowledge
- **Project Wikis** - Organize project documentation, API references, and technical specifications in a structured, searchable format
- **Personal Knowledge Management** - Self-hosted alternative to services like Notion or Confluence for personal or small team use

## Dependencies for Bookstack v25 + MariaDB v12 Hosting

- **Redis** - Required for session management and application caching to ensure optimal performance and distributed session handling
- **Persistent Storage** - MariaDB requires a persistent volume to maintain database data across deployments and restarts

### Deployment Dependencies

- [BookStack Official Documentation](https://www.bookstackapp.com/docs/)
- [BookStack GitHub Repository](https://github.com/BookStackApp/BookStack)
- [MariaDB Documentation](https://mariadb.com/kb/en/documentation/)

### Implementation Details

The template automatically generates secure credentials using Railway's template variable functions.

## Why Deploy Bookstack v25 + MariaDB v12 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.


## Similar templates

- [Libredesk - Complete Setup](https://railway.com/deploy/libredesk-complete-setup) — [Jul'26] Complete self-hosted omnichannel customer support desk.
- [Paperless-ngx](https://railway.com/deploy/paperless-ngx-3) — Document management with OCR on Railway with PostgreSQL and Redis
- [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-v25-mariadb-v12
