Skip to main content

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

  1. Pull the latest Docker images:

    docker compose pull
  2. Recreate the containers with the new images:

    docker compose up -d
  3. Verify the services are running:

    docker compose ps
  4. Check the health endpoints to confirm all services are healthy:

    curl http://localhost:9982/healthz/ready # Manager
    curl http://localhost:9983/healthz/ready # Orchestrator

    The 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.

info

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:

  1. Stop the running services:
    docker compose down
  2. Update docker-compose.yml to reference the previous image tags.
  3. Start the services with the previous images:
    docker compose up -d
warning

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