Container
Snipraw publishes a Docker image to GitHub Container Registry.
Docker
Snipraw's container image always expects a config file mounted at /config.yaml. The snippets-dir value inside that config refers to a path inside the container, not on your host machine, so it needs to match wherever you mount your real snippets folder.
yaml
# config.yaml
snippets-dir: /snippetsbash
docker run -d \
--name snipraw \
-p 8245:8245 \
-v ~/snippets:/snippets \
-v ./config.yaml:/config.yaml \
ghcr.io/patppuccin/snipraw:latestHere, ~/snippets on your machine is mounted to /snippets inside the container, matching snippets-dir in the config above. If you mount your snippets elsewhere (e.g. -v ~/snippets:/data/snips), update snippets-dir to match.
Open http://localhost:8245 to verify it is running.
Docker Compose
yaml
services:
snipraw:
image: ghcr.io/patppuccin/snipraw:latest
container_name: snipraw-server
restart: unless-stopped
ports:
- "8245:8245"
volumes:
- ~/snippets:/snippets
- ./config.yaml:/config.yamlStart it:
bash
docker compose up -dTIP
Pin to a specific version tag in production so updates don't catch you off guard.