# Self-host Opengist

> 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.

- Page: https://levelrail.com/templates/opengist/
- JSON: https://levelrail.com/templates/opengist.json
- Category: Developer Tools
- Licence: AGPL-3.0 (Network copyleft (AGPL) license)
- Source: https://github.com/thomiceli/opengist
- Upstream docs: https://opengist.io/docs

## Requirements
- Memory: about 128 MiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: 1.15.3

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| opengist | ghcr.io/thomiceli/opengist | 1.15.3 | 6157 | data -> /opengist |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| opengist | OG_EXTERNAL_URL | preset |
| opengist | OG_LOG_LEVEL | preset |
| opengist | OG_SSH_GIT_ENABLED | preset |

## Deploy

### CLI

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

### API

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

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

## Questions

### 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.

Self-host Opengist, Opengist docker compose file, deploy Opengist on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
