Self-host ByteStash with Docker
A fast, self-hosted code snippet manager with syntax highlighting, tagging, and a built-in MCP endpoint for AI assistants.
This page describes the Levelrail template for ByteStash (Developer Tools). It deploys the services below as one Docker Compose app on your own server.
Project site: https://github.com/jordan-dalby/ByteStash.Recommended memory: about 256 MiB.
Services, ports and volumes
| Service | Image | Container ports | Volumes |
|---|---|---|---|
bytestash | ghcr.io/jordan-dalby/bytestash:1.5.13 | 5000 | bytestash_data -> /data/snippets |
Environment variables
| Service | Variable | Value |
|---|---|---|
bytestash | ALLOW_NEW_ACCOUNTS | Preset in the template |
bytestash | BASE_PATH | Preset in the template |
bytestash | DISABLE_ACCOUNTS | Preset in the template |
bytestash | DISABLE_INTERNAL_ACCOUNTS | Preset in the template |
bytestash | OIDC_ENABLED | Preset in the template |
bytestash | TOKEN_EXPIRY | Preset in the template |
Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.
Deploy ByteStash with Levelrail
In the dashboard, open Apps, choose New app, then Browse templates, and select ByteStash. Review the Compose body and deploy.
With the CLI:
levelrail-cli templates deploy bytestash --name my-bytestashSee Service template catalog for how templates work, and Getting started if you have not installed Levelrail yet.
More Developer Tools templates
All templates are listed in the self-host gallery.