Skip to content

ByteStash

ByteStash is a self-hosted web application designed to store, organise and manage your code snippets efficiently. With support for creating, editing and filtering snippets, ByteStash helps you keep track of your code in one secure place.


Terminal window
mkdir -p {{DOCKER_PATH_VAR}}/bytestash && cd {{DOCKER_PATH_VAR}}/bytestash
Terminal window
nano compose.yml
compose.yml
services:
bytestash:
image: "ghcr.io/jordan-dalby/bytestash:latest"
container_name: bytestash
ports:
- 5000:5000
volumes:
- ./data/snippets:/data/snippets
environment:
# See https://github.com/jordan-dalby/ByteStash/wiki/FAQ#environment-variables
BASE_PATH: ""
JWT_SECRET: ${JWT_SECRET}
TOKEN_EXPIRY: 24h
ALLOW_NEW_ACCOUNTS: "true"
DEBUG: "true"
DISABLE_ACCOUNTS: "false"
DISABLE_INTERNAL_ACCOUNTS: "false"
# See https://github.com/jordan-dalby/ByteStash/wiki/Single-Sign%E2%80%90on-Setup for more info
OIDC_ENABLED: "false"
OIDC_DISPLAY_NAME: ""
OIDC_ISSUER_URL: ""
OIDC_CLIENT_ID: ""
OIDC_CLIENT_SECRET: ""
OIDC_SCOPES: ""
restart: unless-stopped
Terminal window
nano .env
.env
JWT_SECRET=your_secret_here # openssl rand -base64 32
Terminal window
docker compose up -d

http://localhost:5000 or http://{{SERVER_IP_VAR}}:5000