---
title: "Deploy Gollum"
description: "Git-powered wiki with Markdown pages and a browser editor"
category: "CMS"
url: https://railway.com/deploy/gollum
---

# Deploy Gollum

Git-powered wiki with Markdown pages and a browser editor

**[Deploy Gollum on Railway](https://railway.com/template/gollum)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/gollum/manifest.json

- **Creator:** zer0person's Projects
- **Category:** CMS
- **Total deploys:** 1

## Template content

### Gollum

- **Image:** gollumwiki/gollum:6
- **Start command:** `sh -c 'cd /wiki && printf "%s\n" "module Precious" " class App < Sinatra::Base" "  use(Class.new(Rack::Auth::Basic) { def call(env); env[%q(PATH_INFO)] == %q(/healthz) ? [200, {}, [%q(ok)]] : super; end }, %q(Wiki)) { |u, p| u == %q(admin) && p == ENV[%q(GOLLUM_PASSWORD)] }" " end" "end" > /tmp/auth.rb && exec /docker-run.sh --host 0.0.0.0 --port 8080 --config /tmp/auth.rb'`
- **Public domain:** Yes

## Documentation

# Deploy and Host Gollum on Railway

[Gollum](https://github.com/gollum/gollum) is a simple wiki built on Git: every page is a Markdown (or AsciiDoc, Org, RST...) file in a Git repository, with full history, diffs and a browser editor.

## About Hosting Gollum

This template runs the official `gollumwiki/gollum:6` image on port 8080 with a volume at `/wiki`, where the Git repository of your pages lives. Gollum has no accounts of its own, so the start command adds HTTP basic auth to every page: sign in as `admin` with the password in the service's `GOLLUM_PASSWORD` variable (generated at deploy). `/healthz` stays open for the health check. After signing in, create the Home page and start writing.

## Common Use Cases

- A private team or personal wiki stored as plain Markdown files
- Documentation with Git history for every edit
- A knowledge base you can later clone and edit locally with Git

## Dependencies for Gollum Hosting

- One service with a volume; nothing else

### Deployment Dependencies

- [Gollum on GitHub](https://github.com/gollum/gollum)
- [Docker image](https://hub.docker.com/r/gollumwiki/gollum)

## Why Deploy Gollum on Railway?

Railway gives you a public HTTPS URL, a persistent volume for the wiki repository and automatic restarts with no server to maintain.


## 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/gollum
