---
title: "Deploy Opengist"
description: "A Git-powered pastebin for versioned code snippets and notes."
category: "Starters"
url: https://railway.com/deploy/opengist
---

# Deploy Opengist

A Git-powered pastebin for versioned code snippets and notes.

**[Deploy Opengist on Railway](https://railway.com/template/opengist)**

- **Creator:** Heron Technology
- **Category:** Starters

## Template content

### Opengist https://raw.githubusercontent.com/thomiceli/opengist/v1.14.0/public/img/opengist.svg

- **Image:** ghcr.io/thomiceli/opengist:1.14.0@sha256:692639712c24510a223264bf2540e1370fe3c0f44c9eddc6a832936e02446343
- **Health check:** /healthcheck
- **Public domain:** Yes

## Documentation

# Deploy and Host Opengist on Railway

Opengist is an open-source, self-hosted pastebin powered by Git. It stores each snippet as a Git repository and provides a web interface for creating, organizing, versioning, searching, and sharing code, Markdown, notes, and small file collections with public, unlisted, or private visibility.

## About Hosting Opengist

This community template deploys Opengist 1.14.0 from the official digest-pinned container image. Railway exposes the web application and Git-over-HTTP endpoint on port `6157`, checks `/healthcheck`, and mounts persistent storage at `/opengist` for the SQLite database, Git repositories, search index, sessions, logs, and generated encryption keys. The public URL is derived from Railway automatically, so deployment requires no credentials or manual variable input. SSH Git access is not exposed; HTTPS clone, pull, and push use the generated Railway domain. This template is not affiliated with or endorsed by the Opengist project.

## Common Use Cases

* Keep personal code snippets and technical notes under Git version control.
* Share public or unlisted examples without depending on a hosted gist provider.
* Maintain private, searchable snippets for a small team or homelab.

## Dependencies for Opengist Hosting

* Official `ghcr.io/thomiceli/opengist:1.14.0` image pinned by immutable digest.
* One Railway persistent volume mounted at `/opengist`.

### Deployment Dependencies

* [Opengist Docker installation](https://opengist.io/docs/installation/docker.html)
* [Opengist configuration reference](https://opengist.io/docs/configuration/cheat-sheet.html)
* [Opengist 1.14.0 release](https://github.com/thomiceli/opengist/releases/tag/v1.14.0)
* [Umbrel Opengist deployment](https://github.com/getumbrel/umbrel-apps/tree/master/opengist)

### Implementation Details

The template sets `OG_EXTERNAL_URL=https://${{RAILWAY_PUBLIC_DOMAIN}}`. All other settings use Opengist's documented defaults, including port `6157`, SQLite with WAL mode, and the Bleve search index. Opengist generates its session and encryption key on first start and stores it inside `/opengist`, keeping sessions and encrypted MFA data stable across restarts.

Back up the complete `/opengist` volume before an update. To upgrade, review upstream release notes, test a new immutable image digest against a restored copy, and verify `/healthcheck`, sign-in, and a representative snippet read/write. Roll back by restoring the previous image digest together with its matching volume backup if a migration is incompatible.

## Why Deploy Opengist 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 Opengist on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, and more on Railway.


## Similar templates

- [open-excalidraw](https://railway.com/deploy/open-excalidraw) — Self-hostable collaborative drawing built on Excalidraw
- [caring-vibrancy](https://railway.com/deploy/caring-vibrancy) — Deploy and Host caring-vibrancy with Railway
- [Appsmith](https://railway.com/deploy/appsmith-1) — Low-code platform for internal tools, dashboards, and admin panels.

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