Upgrading and backups
Everything Chelsea stores lives in three Docker volumes: the database, the uploaded files and the cache. The cache can be lost; the other two cannot. Upgrading replaces the containers, never the volumes.
Upgrade
Section titled “Upgrade”# 1. Back up the database, and keep a copy of .env: ENCRYPTION_KEY cannot be recovereddocker compose exec -T db sh -c 'pg_dump -U postgres -Fc "$POSTGRES_DB"' > chelsea-$(date +%F).dump
# 2. Get the new version and rebuildgit pulldocker compose --profile app up -d --buildmigrate runs on every start. It applies only the migrations the new version adds, so a start with nothing new changes nothing. Watch it with docker compose --profile app logs migrate. web and worker don’t start if it fails.
Back up the files
Section titled “Back up the files”Copy the file server’s volume into a dated archive in the current folder:
docker run --rm --volumes-from "$(docker compose ps -q s3)" -v "$PWD":/backup alpine \ tar czf /backup/files-$(date +%F).tgz -C /data .Go back to an older version
Section titled “Go back to an older version”Migrations only move forward. To return to an older version, restore the database dump you took before upgrading first:
docker compose exec -T db sh -c 'pg_restore --clean -U postgres -d "$POSTGRES_DB"' < chelsea-2026-11-01.dumpThen check out the older version and start it again.
Chelsea is operated by Arepa Labs LLC