Upgrades and backups
Upgrading
Pick the new version from the release notes, set it in .env and restart the app container:
sed -i 's/^EMBERSEAL_TAG=.*/EMBERSEAL_TAG=0.9.14/' .env
docker compose pull emberseal && docker compose up -d emberseal
Database changes are applied automatically on start. Take a backup first.
Backups
Back up the database and the master key, and store them separately.
docker compose exec -T surrealdb /surreal export --endpoint http://127.0.0.1:8000 \
-u root -p "$(grep ^SURREAL_PASS= .env | cut -d= -f2)" --ns emberseal --db emberseal - \
> emberseal-$(date +%F).surql
Message content in the export is ciphertext, unreadable without the master key (secrets/emberseal_enc_key). That's also why a lost key can't be recovered.
[!NOTE] Destroying a message deletes its key on the live system, but backups taken earlier still hold an encrypted copy until they age out. Keep backup retention as short as your recovery needs allow.
Valkey holds sessions, dashboard counters and the notification outbox (emails and texts queued for retry, encrypted with the master key). It writes an append-only file so the queue survives restarts; include its volume in host backups if you want the queue to survive losing the host. Losing it signs everyone out and drops queued notifications. ClamAV's volume only caches signatures.
Operations
- Logs:
docker compose logs -f emberseal(JSON, rotated at 5 × 20 MB). - Health:
docker compose ps, orGET /api/health. - One instance per database: run a single Emberseal container. The recipient rate limiter is in memory and the expiry sweeper isn't coordinated across replicas.
- Hardening: the app container is read-only, drops all Linux capabilities and runs with
no-new-privileges.

