Update AI Smart Redact
Update AI Smart Redact by pulling new Docker images and restarting the services. Database migrations are applied automatically on startup.
Update to a new version
-
Pull the latest Docker images:
docker compose pull -
Recreate the containers with the new images:
docker compose up -d -
Verify the services are running:
docker compose ps -
Check the health endpoints to confirm all services are healthy:
curl http://localhost:9982/healthz/ready # Managercurl http://localhost:9983/healthz/ready # OrchestratorThe Worker port isn’t exposed to the host. To check Worker health, refer to Health check endpoints.
Database migrations
Database migrations are applied automatically when each service starts. Both the Manager and Orchestrator manage their own database schemas independently.
No manual migration steps are required during a version upgrade.
The services support both SQLite and PostgreSQL databases. Migrations are applied to whichever database backend is configured in appsettings.json.
Rollback
To roll back to a previous version:
- Stop the running services:
docker compose down
- Update
docker-compose.ymlto reference the previous image tags. - Start the services with the previous images:
docker compose up -d
Rolling back after a database schema migration may cause errors if the older version doesn’t support the new schema. Back up your PostgreSQL databases before upgrading to a new version.
Back up PostgreSQL databases
# Manager database
docker exec smart-redact-manager-db \
pg_dump -U smartredact smartredact > manager-backup.sql
# Orchestrator database
docker exec smart-redact-orchestrator-db \
pg_dump -U smartredact smartredact > orchestrator-backup.sql
Restore from backup
# Manager database
docker exec -i smart-redact-manager-db \
psql -U smartredact smartredact < manager-backup.sql
# Orchestrator database
docker exec -i smart-redact-orchestrator-db \
psql -U smartredact smartredact < orchestrator-backup.sql