Maintenance
Standard image upgrade
Use published images for deployment upgrades. Do not build application images on production hosts unless you are intentionally testing a custom build.
cd taranis-ai/docker
docker compose pull
docker compose up -d
curl -fsS http://<url>:<TARANIS_PORT>/api/health
docker compose ps
For rollback, pin TARANIS_TAG and TARANIS_BOT_TAG to the previous known-good release in .env, pull, restart, and verify /api/health again.
Redis/RQ migration
Taranis AI 1.4.0 replaced Celery/RabbitMQ with Redis/RQ. There is no queue handover from old Celery workers to the new RQ workers.
Before upgrading an older deployment:
- Let running and queued Celery jobs finish.
- Stop old Celery/RabbitMQ services.
- Deploy Redis plus the
collector,workers, andcronservices. - Verify
/api/healthreports database, seed data, broker, and workers asup.
See Background Jobs for the current worker architecture.
PostgreSQL 14 to 17
Supported upgrade of PostgreSQL 14.x to PostgreSQL 17.x. Expect Taranis AI downtime during the database upgrade.
Prerequisites
- Installed Docker Compose V2 or podman-compose
- Running Taranis AI deployment using the
docker/compose.ymlfile. - Running database PostgreSQL of major version 14
- Compose file (
docker/compose.yml) is setup to use the image of PostgreSQL 17 (check yourPOSTGRES_TAGvariable in the.envfile)
Steps to upgrade
- Go to directory:
taranis-ai/docker - Ensure the script
upgrade-database.shis executable - Run the script:
./upgrade-database.sh
All containers should now be up and running again. Verify /api/health and review database logs before handing the instance back to users.