Self-host Opengist with Levelrail

A self-hosted pastebin powered by Git, for sharing snippets and gists with revisions, topics and search. AGPL-3.0 licensed. Uses SQLite in one container. SSH Git access is off, so clone and push over HTTPS. The first account you register becomes the admin.

  • Authorthomiceli
  • LicenceAGPL-3.0
  • Memory128 MiB
  • Archarm64
  • Services1

How to self-host Opengist

  1. Pull the images

    One image is pulled on your server.

    Show images
    • ghcr.io/thomiceli/opengist:1.15.3
  2. Create the app

    One service starts in a single Compose app, with 1 named volume mount for your data, on port 6157.

  3. Fill in the secrets

    3 settings are preset, you do not have to fill in anything.

  4. Open it

    Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.

Opengist requirements

Memory
About 128 MiB
Architectures
amd64 image published, arm64 image published
Ports
6157
Domain
Optional, an sslip.io address is used without one
Settings
none to fill in
License
AGPL-3.0, network copyleft (agpl) license
  • Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.

Install Levelrail first

On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then Opengist. New to Levelrail? Install it on a fresh VPS first.

docker pull ghcr.io/glincker/levelrail:latest

Then levelrail-cli login --device. See Getting started and the Opengist docs page.

Deploy Opengist your way

Every format below deploys the same pinned images. Pick the one that fits how you work.

Deploy Opengist from the CLI

levelrail-cli templates deploy opengist --name my-opengist

Deploy Opengist with the API

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/opengist/deploy

Opengist configuration

Opengist services

ServiceImagePortsVolumes
opengist ghcr.io/thomiceli/opengist:1.15.3 6157 data -> /opengist

Opengist environment variables

VariableServiceValue
OG_EXTERNAL_URL opengist Preset by the template
OG_LOG_LEVEL opengist Preset by the template
OG_SSH_GIT_ENABLED opengist Preset by the template

Ports and volumes

Ports
6157
Volumes
1 named mount: data -> /opengist

Opengist FAQ

How much memory does Opengist need?

The catalog lists about 128 MiB of memory for Opengist.

Does Opengist run on arm64?

For Opengist, an arm64 image is published; amd64 is image published.

What licence is Opengist under?

Opengist is licensed under AGPL-3.0, which is network copyleft, so source sharing also applies when it is offered as a hosted service.

Does Opengist need configuration before it starts?

No. The template fills in its own defaults.

Which ports does Opengist use?

Opengist listens on port 6157 inside the stack.

Where does Opengist keep its data?

In a named volume: data mounted at /opengist.

Can I deploy Opengist on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id opengist for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image ghcr.io/thomiceli/opengist:1.15.3 is what you deploy there.

levelrail-cli templates deploy opengist --name my-opengist