Upgrading
Upgrading is: back up /app/data, pull the new image, recreate the container. The databases are migrated automatically when the new version starts.
1. Back up
Section titled “1. Back up”Stop the container and copy its /app/data (details in Data & backups):
docker stop sonarr-analyzerdocker run --rm \ --volumes-from sonarr-analyzer \ -v "$(pwd)":/backup \ alpine tar czf /backup/sonarr-backup.tar.gz -C /app/data .2. Pull and recreate
Section titled “2. Pull and recreate”Docker Compose
docker compose pulldocker compose up -ddocker run: remove the old container and start a new one with the same volume and TZ:
docker pull martitoci/sonarr-analyzer:latestdocker rm -f sonarr-analyzerdocker run -d --name sonarr-analyzer -p 8501:8501 -p 8502:8502 \ -e TZ=America/New_York \ -v sonarr-data:/app/data --restart unless-stopped \ martitoci/sonarr-analyzer:latestTo stay on a specific version, use its tag instead of latest (see Image tags).
3. Check the logs
Section titled “3. Check the logs”docker logs sonarr-analyzerEach applied migration logs a line like Migrated /app/data/sonarr_history.db to schema version N. Databases from v0.3 and v0.4 are migrated too.
If a migration fails, its changes are rolled back and the database stays at the last version that applied fully. Restore your backup, start the previous tag, and open an issue with the log.
Notes by version
Section titled “Notes by version”| Upgrading to | What to know |
|---|---|
| 0.7.0 | Nothing to migrate by hand: users.db gains two tables. Map port 8502 to use the mobile apps. If your own compose file replaces the healthcheck, change it to python -m sonarr_analyzer.healthcheck, or an HTTPS container shows as unhealthy. Changing a password now signs out that user’s mobile devices. |
| 0.6.2 | The image runs in UTC. Set TZ when you recreate the container, or schedules and dates show in UTC. |
| 0.6.1 | Fixes the permissions of .master.key. If you ran 0.6.0 or earlier, check it’s 600: docker exec sonarr-analyzer stat -c %a /app/data/.master.key |
| 0.5.0 (from 0.4 or earlier) | The read-only role is gone. Former read-only users are disabled; re-enable them from Settings → Users if they should keep access. |
Full details in the release notes.