Docker Compose
1
Download latest environment variables migration script and template
Fetch the latest environment variables migration script
env-migration.sh
and template .env.example to ensure compatibility with the new Tracecat
version.2
Execute environment variables migration
Run the environment variables migration script to update your existing
The script keeps only keys that exist in the new template.
If you set
.env file with any new or changed variables.TRACECAT__IMAGE_TAG in .env, add it back after the migration.3
Update Docker Compose Configuration
Download the latest Docker Compose file.
4
Update Caddyfile
Download the latest Caddyfile.
5
Update the sandbox overlay
If you use nsjail, download the latest
docker-compose.sandbox.yml.6
Restart Tracecat
Pull the new images, then restart Tracecat with the new Docker Compose and With nsjail, run both commands as
.env files.TRACECAT__EXECUTOR_BACKEND=nsjail docker compose -f docker-compose.yml -f docker-compose.sandbox.yml …, the same as the start command. Without the inline variable, Compose reads TRACECAT__EXECUTOR_BACKEND=direct from .env, which overrides the overlay’s nsjail default, so the executor runs the direct backend inside the privileged overlay.
To update to a specific version, download the files above from https://github.com/TracecatHQ/tracecat/releases/download/<version>/<file> instead, where the env template is env.example.Update Integrations
Integrations are not automatically updated when you update the Tracecat version. You will need to manually sync thetracecat_registry repository from the Registry page:

Terraform Deployments
All of Tracecat’s Cloud deployments are configured using Terraform. To update Tracecat, update the Terraform variabletracecat_image_tag to the latest version and run terraform apply.
Data Migration
Data migrations are non-trivial operations. We recommend backing up your database before running migrations, especially in a production environment.If the API service fails to spin up due to a data migration error, do not worry.
Your data is still intact. Make sure you backup the core Tracecat database:
- For Docker Compose and AWS EC2 deployments, this would be the
core-dbvolume in Tracecat’s Docker stack. - For AWS ECS Fargate deployments, backups are created automatically as part of the RDS postgres service. Just run
terraform applywithvar.restore_from_backupset totrueto restore the latest RDS snapshot.