Levelrail
Skip to content

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 ​

ServiceImageContainer portsVolumes
bytestashghcr.io/jordan-dalby/bytestash:1.5.135000
bytestash_data -> /data/snippets

Environment variables ​

ServiceVariableValue
bytestashALLOW_NEW_ACCOUNTSPreset in the template
bytestashBASE_PATHPreset in the template
bytestashDISABLE_ACCOUNTSPreset in the template
bytestashDISABLE_INTERNAL_ACCOUNTSPreset in the template
bytestashOIDC_ENABLEDPreset in the template
bytestashTOKEN_EXPIRYPreset 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-bytestash

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

Released under the Apache 2.0 License.