Quickstart
Get Crumb running in a few minutes on a Linux host with Docker. See Requirements for what your host needs, and Install with Docker Compose for the full explanation of each step.
1. Get the repository and generate secrets
git clone https://github.com/badbread/crumbvms.git crumb && cd crumb
./scripts/setup-env.sh
This writes a gitignored .env with strong, randomly generated secrets. At the end it prints your admin username (admin) and a memorable password like IcyApples473 (also saved as SEED_ADMIN_PASSWORD in .env). Jot it down: you'll sign in with it at step 5, then change it in the console. (Prefer to create the admin in the browser instead? Blank out SEED_ADMIN_PASSWORD in .env before step 3 and first run gives you the create-admin wizard instead.)
2. Point to your storage (optional for trials)
Edit .env and set MEDIA_HOST_PATH to a disk with real headroom:
MEDIA_HOST_PATH=/mnt/your-disk/crumb-data
The default ./_data folder works for testing, but cameras fill terabytes over time. Whichever path you use, it has to be writable by the recorder's user (uid 1001) before you bring the stack up, or nothing records:
sudo mkdir -p /mnt/your-disk/crumb-data
sudo chown -R 1001:1001 /mnt/your-disk/crumb-data
setup-env.sh creates the directory and tries the ownership change, but that only succeeds if you ran it as root, and the command in step 1 does not. It tells you when it couldn't, and prints the exact chown to run. It then preflights the directory for real: it names the filesystem, attempts a write there as uid 1001, and stops with a non-zero exit rather than let you continue if the answer is definitely no. On an NFS or SMB share no local chown helps, the fix belongs in the export or the mount options.
Getting this wrong is quiet: a directory Docker auto-creates ends up root-owned, the recorder can't write, and footage is lost while live view (which touches no disk) keeps working. Set MEDIA_HOST_PATH when you run setup-env.sh and it preflights the real target instead of ./_data. If you already ran step 1, add --force (this regenerates .env, including a new admin password, so note the new one it prints). Only do this before the stack's first start, since an existing database keeps the old password:
MEDIA_HOST_PATH=/mnt/your-disk/crumb-data ./scripts/setup-env.sh --force
3. Bring up the stack
docker compose pull
docker compose up -d
If you forked the repo or pinned a version that isn't published yet, pull will report "not found," use the build-from-source override instead:
docker compose -f docker-compose.yml -f docker-compose.build.yml up -d --build
4. Verify it's running
curl -fsS http://localhost:8080/health
Should print the health response and exit 0 (curl -fsS prints the body, not a status line). A 503 for the first few seconds is normal while the database finishes migrations.
5. Open the browser
http://<host-lan-ip>:8080/admin
Sign in with the admin username and the memorable password setup-env.sh printed (also saved in .env), then change it in the console. From there a wizard walks you through confirming the server address, choosing storage and retention, and finding cameras on your network.
Next steps
- First-run wizard for the full walkthrough
- Adding a camera to get your first stream
- Clients to download the desktop or Android app
- Responsible use before you rely on Crumb for anything
For the full, step-by-step explanation of each of these commands, see Install with Docker Compose.