How to Upgrade
We recommend you upgrade your Fanar instance to the latest release so you can benefit from new features and bug fixes. This document assumes you used our Docker images to set up your instance of Fanar.
Upgrade one release at a time rather than jumping several releases in one step — database migrations are written to run in sequence.
Before each upgrade, check the releases page for breaking changes and any migration notes.
warning
Always back up the Fanar PostgreSQL database before upgrading. Migrations are not reversible.
Upgrade Process
- Make sure to backup your data. You need to backup Fanar's PostgreSQL database (the database Fanar stores metadata in, not the ones you might be querying) and your
.envfile (if it exists). The data in Redis is transient. - Change directory to
/opt/fanar. - Update
/opt/fanar/compose.yamlFanar image reference to the one you want to upgrade to. - Stop Fanar services:
docker compose stop server scheduler scheduled_worker adhoc_worker(you might need to list additional services if you updated your configuration) - Apply migration (if necessary):
docker compose run --rm server manage db upgrade - Start services:
docker compose up -d
Done!
info
Getting an error when running docker or docker compose commands?
Make sure the ubuntu user is part of the docker group:
- Run
sudo usermod -aG docker $USERto add current user to the docker group. - Logout and login again.