{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a389a429-665f-4953-8ccb-a08ca921f335",
    "slug": "triggerdev",
    "name": "Trigger.dev",
    "description": "Deploy Trigger.dev v4 complete stack: Webapp + Supervisor",
    "url": "https://railway.com/deploy/triggerdev",
    "upstream": {
      "image": "registry:2"
    }
  },
  "services": [
    {
      "name": "ClickHouse",
      "source": {
        "image": "clickhouse/clickhouse-server:latest"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "registry",
      "source": {
        "image": "registry:2"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "minio",
      "source": {
        "image": "bitnami/minio:latest"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "nick0lay/trigger-ops-controller:latest",
      "source": {
        "image": "ghcr.io/nick0lay/trigger-ops-controller:latest"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "bitnami/redis:7.2.5"
      },
      "needs_volume": true,
      "volume_mount_path": "/bitnami",
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:16"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "trigger.dev",
      "source": {
        "repo": "https://github.com/nick0lay/trigger.dev"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "CLICKHOUSE_USER",
      "service": "ClickHouse",
      "description": "Username for the ClickHouse database superuser or client",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "CLICKHOUSE_PASSWORD",
      "service": "ClickHouse",
      "description": "Password for the ClickHouse database user",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MINIO_BROWSER",
      "service": "minio",
      "description": "Enables or disables the MinIO web browser UI (\"on\"/\"off\").",
      "secret": false,
      "strategy": "default",
      "default": "on"
    },
    {
      "key": "MINIO_ROOT_USER",
      "service": "minio",
      "description": "Username for MinIO root/admin user",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "MINIO_ROOT_PASSWORD",
      "service": "minio",
      "description": "Password for the MinIO root/admin user (min 8 chars)",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MINIO_DEFAULT_BUCKETS",
      "service": "minio",
      "description": "Comma-separated list of buckets to create on startup",
      "secret": false,
      "strategy": "default",
      "default": "packets"
    },
    {
      "key": "IS_ACTIVE",
      "service": "nick0lay/trigger-ops-controller:latest",
      "description": "Enable/disable continuous monitoring. Set to \"false\" to pause monitoring without stopping container",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "AUTO_DISABLE",
      "service": "nick0lay/trigger-ops-controller:latest",
      "description": "Automatically disable monitoring after successful deployment to save resources",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DATABASE_URL",
      "service": "nick0lay/trigger-ops-controller:latest",
      "description": "PostgreSQL connection string from Railway Postgres service. Used for logical replication configuration",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CHECK_INTERVAL",
      "service": "nick0lay/trigger-ops-controller:latest",
      "description": "Monitoring frequency in minutes (1-60). How often to check supervisor health and configuration",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "DB_SERVICE_NAME",
      "service": "nick0lay/trigger-ops-controller:latest",
      "description": "Name of PostgreSQL service in Railway project. Change if your service has different name",
      "secret": false,
      "strategy": "default",
      "default": "Postgres"
    },
    {
      "key": "SUPERVISOR_SIZE",
      "service": "nick0lay/trigger-ops-controller:latest",
      "description": "DigitalOcean droplet size for supervisor. Options: s-1vcpu-1gb, s-2vcpu-2gb, s-2vcpu-4gb, s-4vcpu-8gb",
      "secret": false,
      "strategy": "default",
      "default": "s-1vcpu-1gb"
    },
    {
      "key": "TRIGGER_VERSION",
      "service": "nick0lay/trigger-ops-controller:latest",
      "description": "Version of Trigger.dev to deploy on supervisor. Should match your webapp version",
      "secret": false,
      "strategy": "default",
      "default": "v4.0.0"
    },
    {
      "key": "RAILWAY_API_TOKEN",
      "service": "nick0lay/trigger-ops-controller:latest",
      "description": "Railway API token for managing services and extracting configuration. Get from Railway account settings",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SUPERVISOR_REGION",
      "service": "nick0lay/trigger-ops-controller:latest",
      "description": "DigitalOcean region where supervisor droplet will be created. Available: nyc1, nyc3, sfo3, ams3, sgp1, lon1, fra1, tor1, blr1",
      "secret": false,
      "strategy": "default",
      "default": "nyc1"
    },
    {
      "key": "DIGITALOCEAN_TOKEN",
      "service": "nick0lay/trigger-ops-controller:latest",
      "description": "DigitalOcean API token for creating and managing droplets. Get from https://cloud.digitalocean.com/account/api/tokens. For example: dop_v1_8ca...",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DOCKER_REGISTRY_URL",
      "service": "nick0lay/trigger-ops-controller:latest",
      "description": "Docker registry domain for supervisor images. Optional if using default Docker Hub",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "WEBAPP_SERVICE_NAME",
      "service": "nick0lay/trigger-ops-controller:latest",
      "description": "Name of webapp service in Railway project. Used for token extraction and API configuration",
      "secret": false,
      "strategy": "default",
      "default": "trigger.dev"
    },
    {
      "key": "HEALTHY_CYCLES_BEFORE_DISABLE",
      "service": "nick0lay/trigger-ops-controller:latest",
      "description": "Number of consecutive healthy cycles before auto-disable triggers",
      "secret": false,
      "strategy": "default",
      "default": "5"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Provide a value for REDISHOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Provide a value for REDISPORT.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Provide a value for REDISUSER.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Provide a value for REDIS_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Provide a value for REDISPASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Provide a value for REDIS_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Redis",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "REDIS_PUBLIC_URL",
      "service": "Redis",
      "description": "Provide a value for REDIS_PUBLIC_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_RDB_POLICY",
      "service": "Redis",
      "description": "Provide a value for REDIS_RDB_POLICY.",
      "secret": false,
      "strategy": "default",
      "default": "3600#1 300#100 60#10000"
    },
    {
      "key": "REDIS_AOF_ENABLED",
      "service": "Redis",
      "description": "Provide a value for REDIS_AOF_ENABLED.",
      "secret": false,
      "strategy": "default",
      "default": "no"
    },
    {
      "key": "RAILWAY_RUN_AS_ROOT",
      "service": "Redis",
      "description": "Provide a value for RAILWAY_RUN_AS_ROOT.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Provide a value for PGDATA.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Provide a value for PGHOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Provide a value for PGPORT.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Provide a value for PGUSER.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Provide a value for PGDATABASE.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Provide a value for PGPASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Provide a value for POSTGRES_DB.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Provide a value for DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Provide a value for POSTGRES_USER.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "Provide a value for SSL_CERT_DAYS.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Provide a value for DATABASE_PUBLIC_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Provide a value for RAILWAY_DEPLOYMENT_DRAINING_SECONDS.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "trigger.dev",
      "description": "Port to run the service.",
      "secret": false,
      "strategy": "default",
      "default": "3030"
    },
    {
      "key": "NODE_ENV",
      "service": "trigger.dev",
      "description": "Set node environment, usually \"production\", \"development\".",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "REDIS_URL",
      "service": "trigger.dev",
      "description": "Redis server connection string.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "API_ORIGIN",
      "service": "trigger.dev",
      "description": "Base URL where API is available. Used for internal/external API calls.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "APP_ORIGIN",
      "service": "trigger.dev",
      "description": "Base URL for serving web application.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DIRECT_URL",
      "service": "trigger.dev",
      "description": "Direct connection URL for database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_HOST",
      "service": "trigger.dev",
      "description": "Redis server hostname.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_PORT",
      "service": "trigger.dev",
      "description": "Redis server port.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "trigger.dev",
      "description": "URL for connecting to PostgreSQL database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LOGIN_ORIGIN",
      "service": "trigger.dev",
      "description": "URL used for login/auth endpoints.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "APP_LOG_LEVEL",
      "service": "trigger.dev",
      "description": "Logging level for the app, e.g. \"info\", \"debug\", etc.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "CLICKHOUSE_URL",
      "service": "trigger.dev",
      "description": "Connection string for ClickHouse database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "trigger.dev",
      "description": "Key for encrypting sensitive data like secrets.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "trigger.dev",
      "description": "Password for Redis authentication.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_USERNAME",
      "service": "trigger.dev",
      "description": "Username for Redis authentication.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SESSION_SECRET",
      "service": "trigger.dev",
      "description": "Secret used to sign session cookies and sessions.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "TRIGGER_CLI_TAG",
      "service": "trigger.dev",
      "description": "Tag for the CLI deployment.",
      "secret": false,
      "strategy": "default",
      "default": "v4"
    },
    {
      "key": "DEPLOY_TIMEOUT_MS",
      "service": "trigger.dev",
      "description": "Provide a value for DEPLOY_TIMEOUT_MS.",
      "secret": false,
      "strategy": "default",
      "default": "480000"
    },
    {
      "key": "MAGIC_LINK_SECRET",
      "service": "trigger.dev",
      "description": "Secret key for magic link authentication method.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "REDIS_TLS_DISABLED",
      "service": "trigger.dev",
      "description": "Disable TLS for Redis connection if true.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DEPLOY_REGISTRY_HOST",
      "service": "trigger.dev",
      "description": "Docker registry host address for images.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DEPLOY_IMAGE_PLATFORM",
      "service": "trigger.dev",
      "description": "Image platform for deployments, e.g. \"linux/amd64\".",
      "secret": false,
      "strategy": "default",
      "default": "linux/amd64"
    },
    {
      "key": "MANAGED_WORKER_SECRET",
      "service": "trigger.dev",
      "description": "Secret used to authenticate managed workers.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OBJECT_STORE_BASE_URL",
      "service": "trigger.dev",
      "description": "Base URL for MinIO/S3-compatible object store.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "NODE_MAX_OLD_SPACE_SIZE",
      "service": "trigger.dev",
      "description": "Memory limit for Node.js process heap in MB.",
      "secret": false,
      "strategy": "default",
      "default": "4096"
    },
    {
      "key": "RUN_REPLICATION_ENABLED",
      "service": "trigger.dev",
      "description": "Enable or disable run replication. Set to \"1\" to enable, \"0\" to disable.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "V4_DEPLOY_REGISTRY_HOST",
      "service": "trigger.dev",
      "description": "Host for deployment registry v4.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DEPLOY_REGISTRY_NAMESPACE",
      "service": "trigger.dev",
      "description": "Namespace for Docker registry.",
      "secret": false,
      "strategy": "default",
      "default": "trigger"
    },
    {
      "key": "GRACEFUL_SHUTDOWN_TIMEOUT",
      "service": "trigger.dev",
      "description": "Graceful shutdown timeout (ms).",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "RUN_REPLICATION_LOG_LEVEL",
      "service": "trigger.dev",
      "description": "Logging level for run replication, e.g. \"info\", \"debug\", \"warn\", \"error\".",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "TRIGGER_BOOTSTRAP_ENABLED",
      "service": "trigger.dev",
      "description": "Bootstrap system resources if enabled.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "OBJECT_STORE_ACCESS_KEY_ID",
      "service": "trigger.dev",
      "description": "Secret key for MinIO/S3-compatible object store.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TRIGGER_TELEMETRY_DISABLED",
      "service": "trigger.dev",
      "description": "Disable telemetry if set.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "OBJECT_STORE_SECRET_ACCESS_KEY",
      "service": "trigger.dev",
      "description": "Secret key for MinIO/S3-compatible object store.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RUN_REPLICATION_CLICKHOUSE_URL",
      "service": "trigger.dev",
      "description": "Connection URL for the ClickHouse instance used specifically for run replication.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DEV_OTEL_EXPORTER_OTLP_ENDPOINT",
      "service": "trigger.dev",
      "description": "Endpoint for OpenTelemetry trace export (dev mode).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "TRIGGER_BOOTSTRAP_WORKER_GROUP_NAME",
      "service": "trigger.dev",
      "description": "Name for the worker group during bootstrap.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "triggerdev"
      }
    },
    "cli": "railway deploy --template triggerdev",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a389a429-665f-4953-8ccb-a08ca921f335",
            "serializedConfig": {
              "services": {
                "129f4fcb-7867-4b4c-a33f-1467442044e7": {
                  "icon": null,
                  "name": "ClickHouse",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "clickhouse/clickhouse-server:latest"
                  },
                  "variables": {
                    "CLICKHOUSE_USER": {
                      "isOptional": false,
                      "description": "Username for the ClickHouse database superuser or client",
                      "defaultValue": "default"
                    },
                    "CLICKHOUSE_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the ClickHouse database user",
                      "defaultValue": "{{CLICKHOUSE_PASSWORD}}"
                    }
                  }
                },
                "3133a80e-a66c-457c-819d-979442e9b2a4": {
                  "icon": null,
                  "name": "registry",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "registry:2"
                  },
                  "variables": {},
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "3229ed99-5e94-46fd-9995-41ba0613736e": {
                  "icon": null,
                  "name": "minio",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "bitnami/minio:latest"
                  },
                  "variables": {
                    "MINIO_BROWSER": {
                      "isOptional": true,
                      "description": "Enables or disables the MinIO web browser UI (\"on\"/\"off\").",
                      "defaultValue": "on"
                    },
                    "MINIO_ROOT_USER": {
                      "isOptional": false,
                      "description": "Username for MinIO root/admin user",
                      "defaultValue": "admin"
                    },
                    "MINIO_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the MinIO root/admin user (min 8 chars)",
                      "defaultValue": "{{MINIO_ROOT_PASSWORD}}"
                    },
                    "MINIO_DEFAULT_BUCKETS": {
                      "isOptional": true,
                      "description": "Comma-separated list of buckets to create on startup",
                      "defaultValue": "packets"
                    }
                  }
                },
                "7bbc8b5a-24a2-4d3a-9dad-a2b221803164": {
                  "name": "nick0lay/trigger-ops-controller:latest",
                  "source": {
                    "image": "ghcr.io/nick0lay/trigger-ops-controller:latest"
                  },
                  "variables": {
                    "IS_ACTIVE": {
                      "isOptional": true,
                      "description": "Enable/disable continuous monitoring. Set to \"false\" to pause monitoring without stopping container",
                      "defaultValue": "true"
                    },
                    "AUTO_DISABLE": {
                      "isOptional": true,
                      "description": "Automatically disable monitoring after successful deployment to save resources",
                      "defaultValue": "true"
                    },
                    "DATABASE_URL": {
                      "description": "PostgreSQL connection string from Railway Postgres service. Used for logical replication configuration",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "CHECK_INTERVAL": {
                      "description": "Monitoring frequency in minutes (1-60). How often to check supervisor health and configuration",
                      "defaultValue": "1"
                    },
                    "DB_SERVICE_NAME": {
                      "description": "Name of PostgreSQL service in Railway project. Change if your service has different name",
                      "defaultValue": "Postgres"
                    },
                    "SUPERVISOR_SIZE": {
                      "description": "DigitalOcean droplet size for supervisor. Options: s-1vcpu-1gb, s-2vcpu-2gb, s-2vcpu-4gb, s-4vcpu-8gb",
                      "defaultValue": "s-1vcpu-1gb"
                    },
                    "TRIGGER_VERSION": {
                      "description": "Version of Trigger.dev to deploy on supervisor. Should match your webapp version",
                      "defaultValue": "v4.0.0"
                    },
                    "RAILWAY_API_TOKEN": {
                      "isOptional": false,
                      "description": "Railway API token for managing services and extracting configuration. Get from Railway account settings",
                      "defaultValue": "{{RAILWAY_API_TOKEN}}"
                    },
                    "SUPERVISOR_REGION": {
                      "description": "DigitalOcean region where supervisor droplet will be created. Available: nyc1, nyc3, sfo3, ams3, sgp1, lon1, fra1, tor1, blr1",
                      "defaultValue": "nyc1"
                    },
                    "DIGITALOCEAN_TOKEN": {
                      "description": "DigitalOcean API token for creating and managing droplets. Get from https://cloud.digitalocean.com/account/api/tokens. For example: dop_v1_8ca...",
                      "defaultValue": "{{DIGITALOCEAN_TOKEN}}"
                    },
                    "DOCKER_REGISTRY_URL": {
                      "description": "Docker registry domain for supervisor images. Optional if using default Docker Hub",
                      "defaultValue": "${{registry.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "WEBAPP_SERVICE_NAME": {
                      "description": "Name of webapp service in Railway project. Used for token extraction and API configuration",
                      "defaultValue": "trigger.dev"
                    },
                    "HEALTHY_CYCLES_BEFORE_DISABLE": {
                      "isOptional": true,
                      "description": "Number of consecutive healthy cycles before auto-disable triggers",
                      "defaultValue": "5"
                    }
                  }
                },
                "926bf83d-4249-4636-b5e7-d54bc2523fec": {
                  "icon": "https://devicons.railway.app/i/redis.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "bitnami/redis:7.2.5"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "defaultValue": "redis://${{REDISUSER}}:${{REDISPASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "defaultValue": "0"
                    },
                    "REDIS_PUBLIC_URL": {
                      "isOptional": false,
                      "defaultValue": "redis://${{REDISUSER}}:${{REDISPASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "REDIS_RDB_POLICY": {
                      "isOptional": false,
                      "defaultValue": "3600#1 300#100 60#10000"
                    },
                    "REDIS_AOF_ENABLED": {
                      "isOptional": false,
                      "defaultValue": "no"
                    },
                    "RAILWAY_RUN_AS_ROOT": {
                      "isOptional": false,
                      "defaultValue": "true"
                    }
                  },
                  "volumeMounts": {
                    "926bf83d-4249-4636-b5e7-d54bc2523fec": {
                      "mountPath": "/bitnami"
                    }
                  }
                },
                "937f4e70-17b6-4dd0-a07c-f56ef7b789dd": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:16"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "937f4e70-17b6-4dd0-a07c-f56ef7b789dd": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                },
                "d674ef2b-6b04-46e9-8777-f60f3d8b8232": {
                  "icon": null,
                  "name": "trigger.dev",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "repo": "nick0lay/trigger.dev",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Port to run the service.",
                      "defaultValue": "3030"
                    },
                    "NODE_ENV": {
                      "isOptional": true,
                      "description": "Set node environment, usually \"production\", \"development\".",
                      "defaultValue": "production"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis server connection string.",
                      "defaultValue": "${{Redis.REDIS_URL}}?family=0"
                    },
                    "API_ORIGIN": {
                      "isOptional": false,
                      "description": "Base URL where API is available. Used for internal/external API calls.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "APP_ORIGIN": {
                      "isOptional": false,
                      "description": "Base URL for serving web application.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DIRECT_URL": {
                      "isOptional": false,
                      "description": "Direct connection URL for database.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "REDIS_HOST": {
                      "isOptional": false,
                      "description": "Redis server hostname.",
                      "defaultValue": "${{Redis.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDIS_PORT": {
                      "isOptional": true,
                      "description": "Redis server port.",
                      "defaultValue": "${{Redis.REDISPORT}}"
                    },
                    "ADMIN_EMAILS": {
                      "isOptional": true,
                      "description": "Regex of user emails to automatically promote to admin.",
                      "defaultValue": ""
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "URL for connecting to PostgreSQL database.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "LOGIN_ORIGIN": {
                      "isOptional": false,
                      "description": "URL used for login/auth endpoints.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "APP_LOG_LEVEL": {
                      "isOptional": true,
                      "description": "Logging level for the app, e.g. \"info\", \"debug\", etc.",
                      "defaultValue": "info"
                    },
                    "CLICKHOUSE_URL": {
                      "isOptional": false,
                      "description": "Connection string for ClickHouse database.",
                      "defaultValue": "http://${{ClickHouse.CLICKHOUSE_USER}}:${{ClickHouse.CLICKHOUSE_PASSWORD}}@${{ClickHouse.RAILWAY_PRIVATE_DOMAIN}}:8123?secure=false"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Key for encrypting sensitive data like secrets.",
                      "defaultValue": "{{ENCRYPTION_KEY}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for Redis authentication.",
                      "defaultValue": "${{Redis.REDISPASSWORD}}"
                    },
                    "REDIS_USERNAME": {
                      "isOptional": true,
                      "description": "Username for Redis authentication.",
                      "defaultValue": "${{Redis.REDISUSER}}"
                    },
                    "SESSION_SECRET": {
                      "isOptional": false,
                      "description": "Secret used to sign session cookies and sessions.",
                      "defaultValue": "{{SESSION_SECRET}}"
                    },
                    "TRIGGER_CLI_TAG": {
                      "isOptional": true,
                      "description": "Tag for the CLI deployment.",
                      "defaultValue": "v4"
                    },
                    "DEPLOY_TIMEOUT_MS": {
                      "isOptional": true,
                      "defaultValue": "480000"
                    },
                    "MAGIC_LINK_SECRET": {
                      "isOptional": false,
                      "description": "Secret key for magic link authentication method.",
                      "defaultValue": "{{MAGIC_LINK_SECRET}}"
                    },
                    "REDIS_TLS_DISABLED": {
                      "isOptional": true,
                      "description": "Disable TLS for Redis connection if true.",
                      "defaultValue": "true"
                    },
                    "DEPLOY_REGISTRY_HOST": {
                      "isOptional": false,
                      "description": "Docker registry host address for images.",
                      "defaultValue": "${{registry.RAILWAY_PRIVATE_DOMAIN}}:5000"
                    },
                    "DEPLOY_IMAGE_PLATFORM": {
                      "isOptional": true,
                      "description": "Image platform for deployments, e.g. \"linux/amd64\".",
                      "defaultValue": "linux/amd64"
                    },
                    "MANAGED_WORKER_SECRET": {
                      "isOptional": false,
                      "description": "Secret used to authenticate managed workers.",
                      "defaultValue": "{{MANAGED_WORKER_SECRET}}"
                    },
                    "OBJECT_STORE_BASE_URL": {
                      "isOptional": false,
                      "description": "Base URL for MinIO/S3-compatible object store.",
                      "defaultValue": "http://${{minio.RAILWAY_PRIVATE_DOMAIN}}:9000"
                    },
                    "NODE_MAX_OLD_SPACE_SIZE": {
                      "isOptional": true,
                      "description": "Memory limit for Node.js process heap in MB.",
                      "defaultValue": "4096"
                    },
                    "RUN_REPLICATION_ENABLED": {
                      "description": "Enable or disable run replication. Set to \"1\" to enable, \"0\" to disable.",
                      "defaultValue": "1"
                    },
                    "V4_DEPLOY_REGISTRY_HOST": {
                      "isOptional": true,
                      "description": "Host for deployment registry v4.",
                      "defaultValue": "${{registry.RAILWAY_PRIVATE_DOMAIN}}:5000"
                    },
                    "DEPLOY_REGISTRY_NAMESPACE": {
                      "isOptional": false,
                      "description": "Namespace for Docker registry.",
                      "defaultValue": "trigger"
                    },
                    "GRACEFUL_SHUTDOWN_TIMEOUT": {
                      "isOptional": true,
                      "description": "Graceful shutdown timeout (ms).",
                      "defaultValue": "1000"
                    },
                    "RUN_REPLICATION_LOG_LEVEL": {
                      "isOptional": true,
                      "description": "Logging level for run replication, e.g. \"info\", \"debug\", \"warn\", \"error\".",
                      "defaultValue": "info"
                    },
                    "TRIGGER_BOOTSTRAP_ENABLED": {
                      "isOptional": true,
                      "description": "Bootstrap system resources if enabled.",
                      "defaultValue": "1"
                    },
                    "OBJECT_STORE_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Secret key for MinIO/S3-compatible object store.",
                      "defaultValue": "${{minio.MINIO_ROOT_USER}}"
                    },
                    "TRIGGER_TELEMETRY_DISABLED": {
                      "isOptional": true,
                      "description": "Disable telemetry if set.",
                      "defaultValue": "1"
                    },
                    "OBJECT_STORE_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Secret key for MinIO/S3-compatible object store.",
                      "defaultValue": "${{minio.MINIO_ROOT_PASSWORD}}"
                    },
                    "RUN_REPLICATION_CLICKHOUSE_URL": {
                      "description": "Connection URL for the ClickHouse instance used specifically for run replication.",
                      "defaultValue": "http://${{ClickHouse.CLICKHOUSE_USER}}:${{ClickHouse.CLICKHOUSE_PASSWORD}}@${{ClickHouse.RAILWAY_PRIVATE_DOMAIN}}:8123"
                    },
                    "DEV_OTEL_EXPORTER_OTLP_ENDPOINT": {
                      "isOptional": true,
                      "description": "Endpoint for OpenTelemetry trace export (dev mode).",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}/otel"
                    },
                    "TRIGGER_BOOTSTRAP_WORKER_GROUP_NAME": {
                      "isOptional": true,
                      "description": "Name for the worker group during bootstrap.",
                      "defaultValue": "railway"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 7,
    "needs_volume": true
  },
  "generated_at": "2026-09-13T10:14:32.962Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-12T02:13:54.710Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_2e71a6afb5fb454a84ff",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED,DEPLOYING,SUCCESS,FAILED,SUCCESS,DEPLOYING,FAILED"
      }
    ]
  }
}
