Skip to content

Self-Hosting Trigger.dev

Run Trigger.dev on your own infrastructure for full control over data residency, compliance, and deployment.

Consider Trigger.dev Cloud first

Trigger.dev Cloud is fully managed, scalable, and comes with dedicated support. Self-hosting is recommended only when you have specific compliance or infrastructure requirements.

Architecture

Self-hosted Trigger.dev consists of two independently scalable components:

  • Webapp — dashboard, API, Redis, Postgres
  • Worker — supervisor + runners that execute tasks

Cloud vs Self-hosted Feature Comparison

FeatureCloudSelf-hosted
Warm startsYesNo
Auto-scalingYesNo
CheckpointsYesNo
Dedicated supportYesNo
Community supportYesYes
ARM supportYesYes

Configurable Limits

Most limits are configurable via environment variables on the webapp container:

LimitConfigurable
ConcurrencyYes
Rate limitsYes
Task payloadsYes
Batch payloadsYes
Task outputsYes
Batch sizeYes
Log sizeYes
Log retentionNever deleted
I/O packet lengthNo (128KB)

Machine Preset Overrides

Set MACHINE_PRESETS_OVERRIDE_PATH to a JSON file:

json
{
  "defaultMachine": "small-1x",
  "machines": {
    "micro": { "cpu": 0.25, "memory": 0.25 },
    "small-1x": { "cpu": 0.5, "memory": 0.5 },
    "small-2x": { "cpu": 1, "memory": 1 }
  }
}

Deployment Options

Important Notes

  • Use version-tagged releases — keep CLI version in sync with self-hosted version
  • You are responsible for security, uptime, data integrity, and upgrades
  • For help: join the #self-hosting channel on Discord

Built from official Trigger.dev documentation