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
Section titled “References”Make directory
Section titled “Make directory”mkdir -p {{DOCKER_PATH_VAR}}/bytestash && cd {{DOCKER_PATH_VAR}}/bytestashcompose.yml
Section titled “compose.yml”nano compose.ymlservices: 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-stoppednano .envJWT_SECRET=your_secret_here # openssl rand -base64 32Start container
Section titled “Start container”docker compose up -d