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.

References


Make directory

Terminal window
mkdir -p {{{DOCKER_PATH_VAR}}}/bytestash && cd {{{DOCKER_PATH_VAR}}}/bytestash

docker-compose.yml

Terminal window
nano docker-compose.yml
docker-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

.env

Terminal window
nano .env
.env
JWT_SECRET=your_secret_here # openssl rand -base64 32

Start container

Terminal window
docker compose up -d

Open web ui

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