Upgrades
Upgrading Frona AI involves pulling the latest code and rebuilding the containers.
Upgrade procedure
Section titled “Upgrade procedure”1. Back up your data
Section titled “1. Back up your data”Always back up before upgrading. See Backups.
docker compose stop fronatar czf frona-backup-pre-upgrade.tar.gz data/ .env2. Pull the latest code
Section titled “2. Pull the latest code”git pull origin main3. Check for configuration changes
Section titled “3. Check for configuration changes”Review the changelog or diff for any new environment variables or changed defaults. Update your .env file if needed.
4. Rebuild and restart
Section titled “4. Rebuild and restart”docker compose builddocker compose up -d5. Verify
Section titled “5. Verify”Check that all services are running:
docker compose psOpen the web interface and verify everything works as expected.
Rolling back
Section titled “Rolling back”If something goes wrong:
- Stop the services:
docker compose down - Check out the previous version:
git checkout <previous-commit> - Restore your data backup if needed
- Rebuild and start:
docker compose build && docker compose up -d
Database migrations
Section titled “Database migrations”SurrealDB handles schema changes automatically in most cases. If a version requires a specific migration, it will be documented in the release notes.
Version pinning
Section titled “Version pinning”If you want to pin to a specific version instead of tracking main, use git tags:
git checkout v1.2.3docker compose builddocker compose up -d