SupaKnock
Menu
Browse topics Backups and updates
← Developer reference

Install and maintain

Backups and updates

Back up your data and secrets before updating the container.

Run these commands from your installation folder. Before updating, make a backup with a new directory name each time, then copy the complete bundle out of the container:

docker compose exec supaknock python -m feedback.maintenance backup /data/before-update-001
docker compose cp supaknock:/data/before-update-001 ./before-update-001

Store a private copy away from the server. The bundle includes the database and the encryption key needed to restore it. Copying only the live SQLite file is not a complete backup. Preserve your Compose file and any deployment secrets too.

docker compose pull supaknock
docker compose up -d supaknock
docker compose ps

If you pinned a release tag or digest, update the image reference first. Keep the same Compose project, volume and encryption key. Startup applies database migrations. Do not use docker compose down -v to update: it deletes the persistent volume. Switching to PostgreSQL or Supabase does not move existing data; see database setup.

Server not starting?

Check docker compose ps and docker compose logs --tail=100 supaknock. The image’s health check uses /readyz, which checks database connectivity. A port conflict usually means another service already uses host port 8000. Change the host side of the mapping and the local PUBLIC_BASE_URL together, for example 127.0.0.1:8080:8000 and http://localhost:8080.

If startup reports a database or migration error, preserve the existing volume and inspect the error before restarting. Do not delete the database to make startup succeed. Do not post setup tokens, database URLs or application secrets with diagnostic logs.

These docs describe the current source. Check your server’s /api/v1/openapi.json for the version you run.