{
  "manifest_version": "1.0.0",
  "template": {
    "id": "47df8530-3979-4f7c-9da6-3ddfdff354a4",
    "slug": "triggerdev-v48",
    "name": "Trigger.dev v4.8",
    "description": "Deploy Trigger.dev v4 complete stack: Webapp + Supervisor",
    "url": "https://railway.com/deploy/triggerdev-v48",
    "upstream": {
      "repo_url": "https://github.com/nick0lay/railway-templates"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "registry",
      "source": {
        "repo": "https://github.com/nick0lay/railway-templates"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/registry",
      "http": true
    },
    {
      "name": "ClickHouse",
      "source": {
        "repo": "https://github.com/nick0lay/railway-templates"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/clickhouse",
      "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": "ops-controller",
      "source": {
        "image": "ghcr.io/nick0lay/trigger-ops-controller:sha-1d922ec"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "trigger.dev",
      "source": {
        "image": "ghcr.io/triggerdotdev/trigger.dev:v4.8.3"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "registry",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "5000"
    },
    {
      "key": "REGISTRY_PASSWORD",
      "service": "registry",
      "description": "Provide a value for REGISTRY_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REGISTRY_USERNAME",
      "service": "registry",
      "description": "Provide a value for REGISTRY_USERNAME.",
      "secret": false,
      "strategy": "default",
      "default": "trigger"
    },
    {
      "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": "PGDATA",
      "service": "Postgres",
      "description": "Postgres data directory inside the volume. Leave as is.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Postgres host on the private network. Set automatically.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Postgres port. Set automatically.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Postgres user. Same as POSTGRES_USER.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Postgres database name. Same as POSTGRES_DB.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Postgres password. Same as POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Name of the database Trigger.dev uses. Leave as is.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string the webapp and ops-controller use. Set automatically.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Postgres superuser name. Leave as is.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "Validity in days of the self-signed SSL certificate Postgres generates.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Postgres superuser password. Generated on deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Public connection string through the TCP proxy, for connecting from outside Railway.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Seconds Railway waits for Postgres to shut down cleanly before stopping it.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "IS_ACTIVE",
      "service": "ops-controller",
      "description": "Enable/disable continuous monitoring. Set to \"false\" to pause monitoring without stopping container",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "AUTO_DISABLE",
      "service": "ops-controller",
      "description": "Automatically disable monitoring after successful deployment to save resources",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DATABASE_URL",
      "service": "ops-controller",
      "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": "ops-controller",
      "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": "ops-controller",
      "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": "ops-controller",
      "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": "ops-controller",
      "description": "Version of Trigger.dev to deploy on supervisor. Should match your webapp version",
      "secret": false,
      "strategy": "default",
      "default": "v4.8.3"
    },
    {
      "key": "RAILWAY_API_TOKEN",
      "service": "ops-controller",
      "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": "ops-controller",
      "description": "DigitalOcean region where supervisor droplet will be created. Available: nyc1, nyc3, sfo3, ams3, sgp1, lon1, fra1, tor1, blr1",
      "secret": false,
      "strategy": "default",
      "default": "nyc3"
    },
    {
      "key": "DIGITALOCEAN_TOKEN",
      "service": "ops-controller",
      "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": "ops-controller",
      "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": "ops-controller",
      "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": "ops-controller",
      "description": "Number of consecutive healthy cycles before auto-disable triggers",
      "secret": false,
      "strategy": "default",
      "default": "5"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private network hostname of the Redis service, only resolvable from services in the same environment",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Port that Redis listens on",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Username for authenticating with Redis",
      "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": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Alias of REDIS_PASSWORD for clients that expect the unseparated name",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Randomly generated password for authenticating with Redis",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "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": "OBJECT_STORE_REGION",
      "service": "trigger.dev",
      "description": "Provide a value for OBJECT_STORE_REGION.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DEPLOY_REGISTRY_HOST",
      "service": "trigger.dev",
      "description": "Docker registry host address for images.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_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 S3-compatible object store.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "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_domain"
    },
    {
      "key": "DEPLOY_REGISTRY_PASSWORD",
      "service": "trigger.dev",
      "description": "Provide a value for DEPLOY_REGISTRY_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DEPLOY_REGISTRY_USERNAME",
      "service": "trigger.dev",
      "description": "Username for the Docker registry service. Taken from the registry service, leave as is.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "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": "V4_DEPLOY_REGISTRY_PASSWORD",
      "service": "trigger.dev",
      "description": "Provide a value for V4_DEPLOY_REGISTRY_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "V4_DEPLOY_REGISTRY_USERNAME",
      "service": "trigger.dev",
      "description": "Provide a value for V4_DEPLOY_REGISTRY_USERNAME.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "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-v48"
      }
    },
    "cli": "railway deploy --template triggerdev-v48",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "47df8530-3979-4f7c-9da6-3ddfdff354a4",
            "serializedConfig": {
              "buckets": {
                "dc53eeae-5d7e-45b9-8639-50bdf428bad2": {
                  "name": "Bucket"
                }
              },
              "services": {
                "107c63d5-aae2-481a-b654-d98af06cc83a": {
                  "name": "registry",
                  "source": {
                    "repo": "nick0lay/railway-templates",
                    "rootDirectory": "/solutions/trigger-dev-v4.8/registry"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "5000"
                    },
                    "REGISTRY_PASSWORD": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "{{REGISTRY_PASSWORD}}"
                    },
                    "REGISTRY_USERNAME": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "trigger"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:5000": {
                        "port": 5000
                      }
                    }
                  },
                  "volumeMounts": {
                    "107c63d5-aae2-481a-b654-d98af06cc83a": {
                      "mountPath": "/var/lib/registry"
                    }
                  }
                },
                "4bdf4e28-d4f8-49b9-93d7-d2a550755d40": {
                  "icon": null,
                  "name": "ClickHouse",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "repo": "nick0lay/railway-templates",
                    "image": null,
                    "rootDirectory": "/solutions/trigger-dev-v4.8/clickhouse"
                  },
                  "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}}"
                    }
                  },
                  "volumeMounts": {
                    "4bdf4e28-d4f8-49b9-93d7-d2a550755d40": {
                      "mountPath": "/var/lib/clickhouse"
                    }
                  }
                },
                "dadcbf8e-c8a0-4692-810d-b986bf914390": {
                  "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,
                      "description": "Postgres data directory inside the volume. Leave as is.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Postgres host on the private network. Set automatically.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Postgres port. Set automatically.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Postgres user. Same as POSTGRES_USER.",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Postgres database name. Same as POSTGRES_DB.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Postgres password. Same as POSTGRES_PASSWORD.",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Name of the database Trigger.dev uses. Leave as is.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string the webapp and ops-controller use. Set automatically.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Postgres superuser name. Leave as is.",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "Validity in days of the self-signed SSL certificate Postgres generates.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgres superuser password. Generated on deploy.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public connection string through the TCP proxy, for connecting from outside Railway.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Seconds Railway waits for Postgres to shut down cleanly before stopping it.",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "dadcbf8e-c8a0-4692-810d-b986bf914390": {
                      "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."
                  }
                },
                "e6f2a2d8-3858-4c82-9903-291cb9fe8d55": {
                  "name": "ops-controller",
                  "source": {
                    "image": "ghcr.io/nick0lay/trigger-ops-controller:sha-1d922ec"
                  },
                  "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": {
                      "isOptional": false,
                      "description": "PostgreSQL connection string from Railway Postgres service. Used for logical replication configuration",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "CHECK_INTERVAL": {
                      "isOptional": false,
                      "description": "Monitoring frequency in minutes (1-60). How often to check supervisor health and configuration",
                      "defaultValue": "1"
                    },
                    "DB_SERVICE_NAME": {
                      "isOptional": false,
                      "description": "Name of PostgreSQL service in Railway project. Change if your service has different name",
                      "defaultValue": "Postgres"
                    },
                    "SUPERVISOR_SIZE": {
                      "isOptional": false,
                      "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": {
                      "isOptional": false,
                      "description": "Version of Trigger.dev to deploy on supervisor. Should match your webapp version",
                      "defaultValue": "v4.8.3"
                    },
                    "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": {
                      "isOptional": false,
                      "description": "DigitalOcean region where supervisor droplet will be created. Available: nyc1, nyc3, sfo3, ams3, sgp1, lon1, fra1, tor1, blr1",
                      "defaultValue": "nyc3"
                    },
                    "DIGITALOCEAN_TOKEN": {
                      "isOptional": false,
                      "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": {
                      "isOptional": false,
                      "description": "Docker registry domain for supervisor images. Optional if using default Docker Hub",
                      "defaultValue": "${{registry.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "WEBAPP_SERVICE_NAME": {
                      "isOptional": false,
                      "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"
                    }
                  }
                },
                "ea10674e-8e28-4450-b8ed-665bb06f2907": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\""
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Private network hostname of the Redis service, only resolvable from services in the same environment",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Port that Redis listens on",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Username for authenticating with Redis",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Alias of REDIS_PASSWORD for clients that expect the unseparated name",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Randomly generated password for authenticating with Redis",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "ea10674e-8e28-4450-b8ed-665bb06f2907": {
                      "mountPath": "/data"
                    }
                  },
                  "haTemplateCode": "redis-ha"
                },
                "f280f0b8-89c5-4ebb-b964-7daf37868cd4": {
                  "icon": null,
                  "name": "trigger.dev",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthcheck"
                  },
                  "source": {
                    "repo": null,
                    "image": "ghcr.io/triggerdotdev/trigger.dev:v4.8.3",
                    "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"
                    },
                    "OBJECT_STORE_REGION": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "${{Bucket.REGION}}"
                    },
                    "DEPLOY_REGISTRY_HOST": {
                      "isOptional": false,
                      "description": "Docker registry host address for images.",
                      "defaultValue": "${{registry.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "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": true,
                      "description": "Base URL for S3-compatible object store.",
                      "defaultValue": "https://${{Bucket.BUCKET}}.t3.storageapi.dev"
                    },
                    "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_PUBLIC_DOMAIN}}"
                    },
                    "DEPLOY_REGISTRY_PASSWORD": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "${{registry.REGISTRY_PASSWORD}}"
                    },
                    "DEPLOY_REGISTRY_USERNAME": {
                      "isOptional": false,
                      "description": "Username for the Docker registry service. Taken from the registry service, leave as is.",
                      "defaultValue": "${{registry.REGISTRY_USERNAME}}"
                    },
                    "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": true,
                      "description": "Secret key for MinIO/S3-compatible object store.",
                      "defaultValue": "${{Bucket.ACCESS_KEY_ID}}"
                    },
                    "TRIGGER_TELEMETRY_DISABLED": {
                      "isOptional": true,
                      "description": "Disable telemetry if set.",
                      "defaultValue": "1"
                    },
                    "V4_DEPLOY_REGISTRY_PASSWORD": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "${{registry.REGISTRY_PASSWORD}}"
                    },
                    "V4_DEPLOY_REGISTRY_USERNAME": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "${{registry.REGISTRY_USERNAME}}"
                    },
                    "OBJECT_STORE_SECRET_ACCESS_KEY": {
                      "isOptional": true,
                      "description": "Secret key for MinIO/S3-compatible object store.",
                      "defaultValue": "${{Bucket.SECRET_ACCESS_KEY}}"
                    },
                    "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": {
    "healthcheck": {
      "service": "trigger.dev",
      "method": "GET",
      "path": "/healthcheck",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 6,
    "needs_volume": true
  },
  "generated_at": "2026-11-04T22:15:11.317Z",
  "generator_version": "0.1.0"
}
