selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

GitHub
Gollum logo

Self-host Gollum

v6.1.0

Git-backed wiki with a built-in web editor

ReleaseOpen SourceMIT
Updatedlast year
LanguageRuby
Setup difficultyEasy
Stars
14 342
Port
4567 (Default port the Gollum web app binds to (--port))
Docker
gollumwiki/gollum
Install with Docker
Viewing and editing a wiki page in the web interface, with a table-of-contents macroOverview, history, latest changes and compare views of a wikiA rendered wiki page showing emoji shortcodesA rendered wiki page with generated citations and referencesCriticMarkup annotations displayed on a wiki page

What is Gollum?

Gollum is a wiki whose entire content lives in an ordinary Git repository: each page is a plain markup file you can organise into folders, edit with any external editor, or change through the web interface Gollum itself provides, and any past version of a page can be viewed or rolled back. Markdown (rendered by kramdown by default) and RDoc ship with it, while AsciiDoc, Creole, MediaWiki, Org-mode, Pod, reStructuredText and Textile work after you install the matching renderer; the project aims for compatibility with GitHub and GitLab project wikis, so cloning one of those lets you browse and change it locally. Documented extras include Mermaid and PlantUML diagrams, BibTeX citations, CriticMarkup annotations, math via KaTeX or MathJax, macros, redirects, an RSS feed of recent changes, drag-and-drop file uploads, custom CSS/JS injection and emoji shortcodes. Install it as a Ruby gem and start it with a single gollum /path/to/wiki command, use the official gollumwiki/gollum Docker image (or a compose file) with your repository mounted at /wiki, or run the downloadable gollum.war on any Java installation; a Rack deployment works too, and user authentication can be added by putting it behind a CAS single sign-on server. Unix-like systems and Windows are supported, though Windows needs JRuby.

Gollum alternatives

Should you self-host Gollum?

Gollum scores 71/100 on selfhost.directory (how scoring works) and ranks #5 of 31 in Wikis. It has 14 342 GitHub stars, +6 in the last 30 days.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is MIT-licensed and written mostly in Ruby.

Its closest alternative on selfhost.directory is Wiki.js (78/100, 29 226 stars). It scores higher overall, so compare the two before you pick. See Gollum vs Wiki.js side by side.

Features

  • BibTeX citations
  • CriticMarkup annotations
  • Custom CSS and JS
  • Diagrams (Mermaid, PlantUML)
  • Emoji shortcodes
  • File uploads
  • GitHub/GitLab wiki compatibility
  • Macros
  • Math rendering (KaTeX/MathJax)
  • Multiple markup formats
  • Page redirects
  • Revision history and rollback
  • RSS Feed
  • Web-based page editing

Gollum README

gollum - A git-based Wiki

Gem Version Build Status Open Source Helpers Cutting Edge Dependency Status Docker Pulls License GitHub Contributors

Gollum is a simple wiki system built on top of Git. A Gollum Wiki is simply a git repository of a specific nature:

How to install Gollum

Install Gollum with Docker

docker pull gollumwiki/gollum:6.1.0

docker run --rm -p 4567:4567 -v $(pwd):/wiki gollumwiki/gollum

The -v $(pwd):/wiki mount tells Docker which git repository to serve; flags after the image name are passed to the gollum command. From version 6.0 the container runs as a non-root user, so the mapped host directory needs matching ownership (e.g. chown 1000:1000) or -u=<UID>.

How to configure Gollum

  • --hostSpecify the hostname or IP address to listen on. Default: '0.0.0.0'. (Note: `0.0.0.0` allows remote access. For a personal Wiki, use `127.0.0.1`.)
  • --portSpecify the port to bind Gollum with. Default: `4567`.
  • --configSpecify path to Gollum's configuration file.
  • --refSpecify the git branch to serve. Default: `main` (or `master` if `main` is not found).
  • --bareTell Gollum that the git repository should be treated as bare.

Gollum releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Wikis

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…