Run the container
Inside the container, snapr looks for
snapr.yaml in /etc/snapr/ by default.Volumes and paths
Inside the container, snapr runs as usersnapr (uid 1001). Mount:
- the config file read-only at
/etc/snapr/snapr.yaml - any source path you want to back up — read-only is fine
- any local storage path — must be writable by uid
1001. If the host directory is owned by another user, eitherchown 1001it or run the container with a matching--user.
Environment variables
Use environment variables withenv: references in snapr.yaml:
snapr.yaml
Dev stack with Docker Compose
The repo ships a dev stack with MinIO (S3), PostgreSQL, SFTP, and WebDAV containers — useful for trying every storage backend locally. The stack only starts the storage targets; snapr itself runs from source viapnpm run dev (see examples/dev/README.md).