{
  "manifest_version": "1.0.0",
  "template": {
    "id": "d5805bf3-c49a-4d7b-a516-7e440ab31886",
    "slug": "tracedown-core-template",
    "name": "tracedown-core-template",
    "description": "Deploy Tracedown platform on Railway",
    "url": "https://railway.com/deploy/tracedown-core-template",
    "upstream": {
      "repo_url": "https://github.com/tracedown/tracedown-railway-template"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "aggregate-worker",
      "source": {
        "repo": "https://github.com/tracedown/tracedown-railway-template"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "email-service",
      "source": {
        "repo": "https://github.com/tracedown/tracedown-railway-template"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "notification-dispatcher",
      "source": {
        "repo": "https://github.com/tracedown/tracedown-railway-template"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "proxy",
      "source": {
        "repo": "https://github.com/tracedown/tracedown-railway-template"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "realtime-service",
      "source": {
        "repo": "https://github.com/tracedown/tracedown-railway-template"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "result-ingestor",
      "source": {
        "repo": "https://github.com/tracedown/tracedown-railway-template"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "gateway",
      "source": {
        "repo": "https://github.com/tracedown/tracedown-railway-template"
      },
      "needs_volume": true,
      "volume_mount_path": "/data/bodies",
      "http": false
    },
    {
      "name": "metrics-service",
      "source": {
        "repo": "https://github.com/tracedown/tracedown-railway-template"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "probe-scheduler",
      "source": {
        "repo": "https://github.com/tracedown/tracedown-railway-template"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "aggregate-worker",
      "description": "Aggregate Worker port",
      "secret": false,
      "strategy": "default",
      "default": "20860"
    },
    {
      "key": "REDIS_A_URL",
      "service": "aggregate-worker",
      "description": "Redis A URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_B_URL",
      "service": "aggregate-worker",
      "description": "Redis B URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_C_URL",
      "service": "aggregate-worker",
      "description": "Redis C URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "aggregate-worker",
      "description": "Database URL# Database URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_USER",
      "service": "aggregate-worker",
      "description": "Database user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PLATFORM_AES_KEY",
      "service": "aggregate-worker",
      "description": "Platform AES encryption key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_PASSWORD",
      "service": "aggregate-worker",
      "description": "Database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_BUCKET",
      "service": "aggregate-worker",
      "description": "S3 Bucket",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_PREFIX",
      "service": "aggregate-worker",
      "description": "S3 Prefix",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_ENDPOINT",
      "service": "aggregate-worker",
      "description": "S3 endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_ACCESS_KEY",
      "service": "aggregate-worker",
      "description": "S3 Access Key ID",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_SECRET_KEY",
      "service": "aggregate-worker",
      "description": "S3 Secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "aggregate-worker",
      "description": "Which Dockerfile in the template repo builds this service. Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "services/aggregate-worker/Dockerfile"
    },
    {
      "key": "PORT",
      "service": "email-service",
      "description": "Email Service port",
      "secret": false,
      "strategy": "default",
      "default": "20840"
    },
    {
      "key": "REDIS_A_URL",
      "service": "email-service",
      "description": "Redis A URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_B_URL",
      "service": "email-service",
      "description": "Redis B URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_C_URL",
      "service": "email-service",
      "description": "Redis C URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "email-service",
      "description": "Database URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_USER",
      "service": "email-service",
      "description": "Database user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EMAIL_PROVIDER",
      "service": "email-service",
      "description": "Email provider. \"smtp\", \"mailgun\", \"resend\", \"console\"",
      "secret": false,
      "strategy": "default",
      "default": "console"
    },
    {
      "key": "EMAIL_FROM_NAME",
      "service": "email-service",
      "description": "Sender display name",
      "secret": false,
      "strategy": "default",
      "default": "Tracedown"
    },
    {
      "key": "EMAIL_SMTP_PORT",
      "service": "email-service",
      "description": "SMTP port; SMTP-only",
      "secret": false,
      "strategy": "default",
      "default": "587"
    },
    {
      "key": "PLATFORM_AES_KEY",
      "service": "email-service",
      "description": "Platform AES encryption key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_PASSWORD",
      "service": "email-service",
      "description": "Database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EMAIL_FROM_ADDRESS",
      "service": "email-service",
      "description": "Sender address",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "EMAIL_SMTP_TLS_MODE",
      "service": "email-service",
      "description": "SMTP TLS mode; SMTP-only",
      "secret": false,
      "strategy": "default",
      "default": "STARTTLS"
    },
    {
      "key": "EMAIL_MAILGUN_REGION",
      "service": "email-service",
      "description": "Mailgun region; Mailgun-only",
      "secret": false,
      "strategy": "default",
      "default": "us"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "email-service",
      "description": "Which Dockerfile in the template repo builds this service. Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "services/email-service/Dockerfile"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Volume data location",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Database user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database name",
      "secret": false,
      "strategy": "default",
      "default": "tracedown"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Database user",
      "secret": false,
      "strategy": "default",
      "default": "tracedown"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Database password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "notification-dispatcher",
      "description": "Notifications Dispatcher port",
      "secret": false,
      "strategy": "default",
      "default": "20830"
    },
    {
      "key": "REDIS_A_URL",
      "service": "notification-dispatcher",
      "description": "Redis A URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_B_URL",
      "service": "notification-dispatcher",
      "description": "Redis B URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_C_URL",
      "service": "notification-dispatcher",
      "description": "Redis C URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "notification-dispatcher",
      "description": "Database URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_USER",
      "service": "notification-dispatcher",
      "description": "Database user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PLATFORM_AES_KEY",
      "service": "notification-dispatcher",
      "description": "Platform AES encryption key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_PASSWORD",
      "service": "notification-dispatcher",
      "description": "Database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "notification-dispatcher",
      "description": "Which Dockerfile in the template repo builds this service. Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "services/notification-dispatcher/Dockerfile"
    },
    {
      "key": "PORT",
      "service": "proxy",
      "description": "Deployment entry port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "GATEWAY_HOST",
      "service": "proxy",
      "description": "Gateway internal URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "METRICS_HOST",
      "service": "proxy",
      "description": "Metrics internal URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REALTIME_HOST",
      "service": "proxy",
      "description": "Realtime service internal URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "proxy",
      "description": "Which Dockerfile in the template repo builds this service. Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "proxy/Dockerfile"
    },
    {
      "key": "PORT",
      "service": "realtime-service",
      "description": "Realtime Service port",
      "secret": false,
      "strategy": "default",
      "default": "20870"
    },
    {
      "key": "REDIS_A_URL",
      "service": "realtime-service",
      "description": "Redis A URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_B_URL",
      "service": "realtime-service",
      "description": "Redis B URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_C_URL",
      "service": "realtime-service",
      "description": "Redis C URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "realtime-service",
      "description": "Database URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_USER",
      "service": "realtime-service",
      "description": "Database user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PLATFORM_AES_KEY",
      "service": "realtime-service",
      "description": "Platform AES encryption key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_PASSWORD",
      "service": "realtime-service",
      "description": "Database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "realtime-service",
      "description": "Which Dockerfile in the template repo builds this service. Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "services/realtime-service/Dockerfile"
    },
    {
      "key": "PORT",
      "service": "result-ingestor",
      "description": "Result Ingestor port",
      "secret": false,
      "strategy": "default",
      "default": "20820"
    },
    {
      "key": "REDIS_A_URL",
      "service": "result-ingestor",
      "description": "Redis A URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_B_URL",
      "service": "result-ingestor",
      "description": "Redis B URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_C_URL",
      "service": "result-ingestor",
      "description": "Redis C URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "result-ingestor",
      "description": "Database URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_USER",
      "service": "result-ingestor",
      "description": "Database user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PLATFORM_AES_KEY",
      "service": "result-ingestor",
      "description": "Platform AES encryption key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_PASSWORD",
      "service": "result-ingestor",
      "description": "Database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_BUCKET",
      "service": "result-ingestor",
      "description": "S3 Bucket",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_PREFIX",
      "service": "result-ingestor",
      "description": "S3 Prefix",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_ENDPOINT",
      "service": "result-ingestor",
      "description": "S3 endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_ACCESS_KEY",
      "service": "result-ingestor",
      "description": "S3 Access Key ID",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_SECRET_KEY",
      "service": "result-ingestor",
      "description": "S3 Secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "result-ingestor",
      "description": "Which Dockerfile in the template repo builds this service. Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "services/result-ingestor/Dockerfile"
    },
    {
      "key": "PORT",
      "service": "gateway",
      "description": "Gateway port",
      "secret": false,
      "strategy": "default",
      "default": "20714"
    },
    {
      "key": "APP_URL",
      "service": "gateway",
      "description": "Public app URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "JWT_SECRET",
      "service": "gateway",
      "description": "Sessions secret",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "REDIS_A_URL",
      "service": "gateway",
      "description": "Redis A URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_B_URL",
      "service": "gateway",
      "description": "Redis B URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_C_URL",
      "service": "gateway",
      "description": "Redis C URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "gateway",
      "description": "Database URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_USER",
      "service": "gateway",
      "description": "Database user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DEMO_USER_EMAIL",
      "service": "gateway",
      "description": "Root user email",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "PLATFORM_AES_KEY",
      "service": "gateway",
      "description": "Platform AES encryption key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DATABASE_PASSWORD",
      "service": "gateway",
      "description": "Database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_BUCKET",
      "service": "gateway",
      "description": "S3 Bucket",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "STORAGE_S3_PREFIX",
      "service": "gateway",
      "description": "S3 Prefix",
      "secret": false,
      "strategy": "default",
      "default": "bodies"
    },
    {
      "key": "DEMO_USER_PASSWORD",
      "service": "gateway",
      "description": "Root user password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "STORAGE_S3_ENDPOINT",
      "service": "gateway",
      "description": "S3 endpoint",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "STORAGE_S3_ACCESS_KEY",
      "service": "gateway",
      "description": "S3 Access Key ID",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "STORAGE_S3_SECRET_KEY",
      "service": "gateway",
      "description": "S3 Secret key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "gateway",
      "description": "Which Dockerfile in the template repo builds this service. Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "gateway/Dockerfile"
    },
    {
      "key": "PORT",
      "service": "metrics-service",
      "description": "Metrics Service port",
      "secret": false,
      "strategy": "default",
      "default": "20850"
    },
    {
      "key": "REDIS_A_URL",
      "service": "metrics-service",
      "description": "Redis A URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_B_URL",
      "service": "metrics-service",
      "description": "Redis B URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_C_URL",
      "service": "metrics-service",
      "description": "Redis C URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "metrics-service",
      "description": "Database URLDatabase URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_USER",
      "service": "metrics-service",
      "description": "Database user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PLATFORM_AES_KEY",
      "service": "metrics-service",
      "description": "Platform AES encryption key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_PASSWORD",
      "service": "metrics-service",
      "description": "Database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "metrics-service",
      "description": "Which Dockerfile in the template repo builds this service. Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "services/metrics-service/Dockerfile"
    },
    {
      "key": "PORT",
      "service": "probe-scheduler",
      "description": "Probe Scheduler port",
      "secret": false,
      "strategy": "default",
      "default": "20810"
    },
    {
      "key": "GATEWAY_URL",
      "service": "probe-scheduler",
      "description": "Gateway internal URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_A_URL",
      "service": "probe-scheduler",
      "description": "Redis A URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_B_URL",
      "service": "probe-scheduler",
      "description": "Redis B URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_C_URL",
      "service": "probe-scheduler",
      "description": "Redis C URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "probe-scheduler",
      "description": "Database URLDatabase URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_USER",
      "service": "probe-scheduler",
      "description": "Database user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PLATFORM_AES_KEY",
      "service": "probe-scheduler",
      "description": "Platform AES encryption key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_PASSWORD",
      "service": "probe-scheduler",
      "description": "Database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "probe-scheduler",
      "description": "Which Dockerfile in the template repo builds this service. Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "services/probe-scheduler/Dockerfile"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Redis host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Redis port",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Redis user",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Redis URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Redis password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Redis password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "tracedown-core-template"
      }
    },
    "cli": "railway deploy --template tracedown-core-template",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "d5805bf3-c49a-4d7b-a516-7e440ab31886",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "27f8d109-3d21-45a6-9ca3-c510e30ffb72": {
                  "icon": null,
                  "name": "aggregate-worker",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/tracedown/tracedown-railway-template",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Aggregate Worker port",
                      "defaultValue": "20860"
                    },
                    "REDIS_A_URL": {
                      "isOptional": false,
                      "description": "Redis A URL",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "REDIS_B_URL": {
                      "isOptional": false,
                      "description": "Redis B URL",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "REDIS_C_URL": {
                      "isOptional": false,
                      "description": "Redis C URL",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Database URL# Database URL",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "DATABASE_USER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "PLATFORM_AES_KEY": {
                      "isOptional": false,
                      "description": "Platform AES encryption key",
                      "defaultValue": "${{gateway.PLATFORM_AES_KEY}}"
                    },
                    "DATABASE_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "STORAGE_S3_BUCKET": {
                      "description": "S3 Bucket",
                      "defaultValue": "${{gateway.STORAGE_S3_BUCKET}}"
                    },
                    "STORAGE_S3_PREFIX": {
                      "description": "S3 Prefix",
                      "defaultValue": "${{gateway.STORAGE_S3_PREFIX}}"
                    },
                    "STORAGE_S3_ENDPOINT": {
                      "description": "S3 endpoint",
                      "defaultValue": "${{gateway.STORAGE_S3_ENDPOINT}}"
                    },
                    "STORAGE_S3_ACCESS_KEY": {
                      "description": "S3 Access Key ID",
                      "defaultValue": "${{gateway.STORAGE_S3_ACCESS_KEY}}"
                    },
                    "STORAGE_S3_SECRET_KEY": {
                      "description": "S3 Secret key",
                      "defaultValue": "${{gateway.STORAGE_S3_SECRET_KEY}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Which Dockerfile in the template repo builds this service. Do not change.",
                      "defaultValue": "services/aggregate-worker/Dockerfile"
                    }
                  }
                },
                "2827f0b9-90c3-4e9d-b5f1-990aa00d3dbc": {
                  "icon": null,
                  "name": "email-service",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/tracedown/tracedown-railway-template",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Email Service port",
                      "defaultValue": "20840"
                    },
                    "REDIS_A_URL": {
                      "isOptional": false,
                      "description": "Redis A URL",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "REDIS_B_URL": {
                      "isOptional": false,
                      "description": "Redis B URL",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "REDIS_C_URL": {
                      "isOptional": false,
                      "description": "Redis C URL",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Database URL",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "DATABASE_USER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "EMAIL_PROVIDER": {
                      "description": "Email provider. \"smtp\", \"mailgun\", \"resend\", \"console\"",
                      "defaultValue": "console"
                    },
                    "EMAIL_FROM_NAME": {
                      "description": "Sender display name",
                      "defaultValue": "Tracedown"
                    },
                    "EMAIL_SMTP_HOST": {
                      "isOptional": true,
                      "description": "SMTP host; SMTP-only",
                      "defaultValue": ""
                    },
                    "EMAIL_SMTP_PORT": {
                      "isOptional": true,
                      "description": "SMTP port; SMTP-only",
                      "defaultValue": "587"
                    },
                    "PLATFORM_AES_KEY": {
                      "isOptional": false,
                      "description": "Platform AES encryption key",
                      "defaultValue": "${{gateway.PLATFORM_AES_KEY}}"
                    },
                    "DATABASE_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "EMAIL_FROM_ADDRESS": {
                      "description": "Sender address",
                      "defaultValue": "{{EMAIL_FROM_ADDRESS}}"
                    },
                    "EMAIL_SMTP_PASSWORD": {
                      "isOptional": true,
                      "description": "SMTP password; SMTP-only",
                      "defaultValue": ""
                    },
                    "EMAIL_SMTP_TLS_MODE": {
                      "isOptional": true,
                      "description": "SMTP TLS mode; SMTP-only",
                      "defaultValue": "STARTTLS"
                    },
                    "EMAIL_SMTP_USERNAME": {
                      "isOptional": true,
                      "description": "SMTP username; SMTP-only",
                      "defaultValue": ""
                    },
                    "EMAIL_MAILGUN_DOMAIN": {
                      "isOptional": true,
                      "description": "Mailgun domain; Mailgun-only",
                      "defaultValue": ""
                    },
                    "EMAIL_MAILGUN_REGION": {
                      "isOptional": true,
                      "description": "Mailgun region; Mailgun-only",
                      "defaultValue": "us"
                    },
                    "EMAIL_RESEND_API_KEY": {
                      "isOptional": true,
                      "description": "Resend API key; Resend-only",
                      "defaultValue": ""
                    },
                    "EMAIL_MAILGUN_API_KEY": {
                      "isOptional": true,
                      "description": "Mailgun API key; Mailgun-only",
                      "defaultValue": ""
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Which Dockerfile in the template repo builds this service. Do not change.",
                      "defaultValue": "services/email-service/Dockerfile"
                    }
                  }
                },
                "81024a76-ed34-47c0-b3a9-7e07884f6cbe": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": "/usr/local/bin/wrapper.sh postgres -p 5432 -c listen_addresses=* -c max_connections=160",
                    "requiredMountPath": "/var/lib/postgresql/data"
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Volume data location",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "${{Postgres.POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Database password",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "tracedown"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Postgres database.",
                      "defaultValue": "jdbc:postgresql://${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/${{Postgres.POSTGRES_DB}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "tracedown"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "81024a76-ed34-47c0-b3a9-7e07884f6cbe": {
                      "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."
                  }
                },
                "881004d1-fb6a-4883-bd48-9b307e121117": {
                  "icon": null,
                  "name": "notification-dispatcher",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/tracedown/tracedown-railway-template",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Notifications Dispatcher port",
                      "defaultValue": "20830"
                    },
                    "REDIS_A_URL": {
                      "isOptional": false,
                      "description": "Redis A URL",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "REDIS_B_URL": {
                      "isOptional": false,
                      "description": "Redis B URL",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "REDIS_C_URL": {
                      "isOptional": false,
                      "description": "Redis C URL",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Database URL",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "DATABASE_USER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "PLATFORM_AES_KEY": {
                      "isOptional": false,
                      "description": "Platform AES encryption key",
                      "defaultValue": "${{gateway.PLATFORM_AES_KEY}}"
                    },
                    "DATABASE_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Which Dockerfile in the template repo builds this service. Do not change.",
                      "defaultValue": "services/notification-dispatcher/Dockerfile"
                    }
                  }
                },
                "91d1dd54-c49b-4f23-82d8-c1b06311ff2c": {
                  "icon": null,
                  "name": "proxy",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/tracedown/tracedown-railway-template",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Deployment entry port",
                      "defaultValue": "8080"
                    },
                    "GATEWAY_HOST": {
                      "isOptional": false,
                      "description": "Gateway internal URL",
                      "defaultValue": "${{gateway.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "METRICS_HOST": {
                      "isOptional": false,
                      "description": "Metrics internal URL",
                      "defaultValue": "${{metrics-service.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REALTIME_HOST": {
                      "isOptional": false,
                      "description": "Realtime service internal URL",
                      "defaultValue": "${{realtime-service.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Which Dockerfile in the template repo builds this service. Do not change.",
                      "defaultValue": "proxy/Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "94d9b1ad-8d30-4b58-b96b-316cadf2f9d3": {
                  "icon": null,
                  "name": "realtime-service",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/tracedown/tracedown-railway-template",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Realtime Service port",
                      "defaultValue": "20870"
                    },
                    "REDIS_A_URL": {
                      "isOptional": false,
                      "description": "Redis A URL",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "REDIS_B_URL": {
                      "isOptional": false,
                      "description": "Redis B URL",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "REDIS_C_URL": {
                      "isOptional": false,
                      "description": "Redis C URL",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Database URL",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "DATABASE_USER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "PLATFORM_AES_KEY": {
                      "isOptional": false,
                      "description": "Platform AES encryption key",
                      "defaultValue": "${{gateway.PLATFORM_AES_KEY}}"
                    },
                    "DATABASE_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Which Dockerfile in the template repo builds this service. Do not change.",
                      "defaultValue": "services/realtime-service/Dockerfile"
                    }
                  }
                },
                "a4a262ef-bdd0-4f48-ac06-75c599470c37": {
                  "icon": null,
                  "name": "result-ingestor",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/tracedown/tracedown-railway-template",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Result Ingestor port",
                      "defaultValue": "20820"
                    },
                    "REDIS_A_URL": {
                      "isOptional": false,
                      "description": "Redis A URL",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "REDIS_B_URL": {
                      "isOptional": false,
                      "description": "Redis B URL",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "REDIS_C_URL": {
                      "isOptional": false,
                      "description": "Redis C URL",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Database URL",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "DATABASE_USER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "PLATFORM_AES_KEY": {
                      "isOptional": false,
                      "description": "Platform AES encryption key",
                      "defaultValue": "${{gateway.PLATFORM_AES_KEY}}"
                    },
                    "DATABASE_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "STORAGE_S3_BUCKET": {
                      "description": "S3 Bucket",
                      "defaultValue": "${{gateway.STORAGE_S3_BUCKET}}"
                    },
                    "STORAGE_S3_PREFIX": {
                      "description": "S3 Prefix",
                      "defaultValue": "${{gateway.STORAGE_S3_PREFIX}}"
                    },
                    "STORAGE_S3_ENDPOINT": {
                      "description": "S3 endpoint",
                      "defaultValue": "${{gateway.STORAGE_S3_ENDPOINT}}"
                    },
                    "STORAGE_S3_ACCESS_KEY": {
                      "description": "S3 Access Key ID",
                      "defaultValue": "${{gateway.STORAGE_S3_ACCESS_KEY}}"
                    },
                    "STORAGE_S3_SECRET_KEY": {
                      "description": "S3 Secret key",
                      "defaultValue": "${{gateway.STORAGE_S3_SECRET_KEY}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Which Dockerfile in the template repo builds this service. Do not change.",
                      "defaultValue": "services/result-ingestor/Dockerfile"
                    }
                  }
                },
                "b6de6523-2f81-478a-a901-5228b22793ec": {
                  "icon": null,
                  "name": "gateway",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/ping",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/tracedown/tracedown-railway-template",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Gateway port",
                      "defaultValue": "20714"
                    },
                    "APP_URL": {
                      "isOptional": false,
                      "description": "Public app URL",
                      "defaultValue": "https://${{proxy.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "JWT_SECRET": {
                      "isOptional": false,
                      "description": "Sessions secret",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "REDIS_A_URL": {
                      "isOptional": false,
                      "description": "Redis A URL",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "REDIS_B_URL": {
                      "isOptional": false,
                      "description": "Redis B URL",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "REDIS_C_URL": {
                      "isOptional": false,
                      "description": "Redis C URL",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Database URL",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "DATABASE_USER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "DEMO_USER_EMAIL": {
                      "isOptional": false,
                      "description": "Root user email",
                      "defaultValue": "{{DEMO_USER_EMAIL}}"
                    },
                    "PLATFORM_AES_KEY": {
                      "isOptional": false,
                      "description": "Platform AES encryption key",
                      "defaultValue": "{{PLATFORM_AES_KEY}}"
                    },
                    "DATABASE_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "STORAGE_S3_BUCKET": {
                      "description": "S3 Bucket",
                      "defaultValue": "{{STORAGE_S3_BUCKET}}"
                    },
                    "STORAGE_S3_PREFIX": {
                      "description": "S3 Prefix",
                      "defaultValue": "bodies"
                    },
                    "DEMO_USER_PASSWORD": {
                      "isOptional": false,
                      "description": "Root user password",
                      "defaultValue": "{{DEMO_USER_PASSWORD}}"
                    },
                    "STORAGE_S3_ENDPOINT": {
                      "description": "S3 endpoint",
                      "defaultValue": "{{STORAGE_S3_ENDPOINT}}"
                    },
                    "STORAGE_S3_ACCESS_KEY": {
                      "description": "S3 Access Key ID",
                      "defaultValue": "{{STORAGE_S3_ACCESS_KEY}}"
                    },
                    "STORAGE_S3_SECRET_KEY": {
                      "description": "S3 Secret key",
                      "defaultValue": "{{STORAGE_S3_SECRET_KEY}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Which Dockerfile in the template repo builds this service. Do not change.",
                      "defaultValue": "gateway/Dockerfile"
                    }
                  },
                  "volumeMounts": {
                    "b6de6523-2f81-478a-a901-5228b22793ec": {
                      "mountPath": "/data/bodies"
                    }
                  }
                },
                "c5f70865-a4da-449f-8da9-1d8d2ff7e87c": {
                  "icon": null,
                  "name": "metrics-service",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/tracedown/tracedown-railway-template",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Metrics Service port",
                      "defaultValue": "20850"
                    },
                    "REDIS_A_URL": {
                      "isOptional": false,
                      "description": "Redis A URL",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "REDIS_B_URL": {
                      "isOptional": false,
                      "description": "Redis B URL",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "REDIS_C_URL": {
                      "isOptional": false,
                      "description": "Redis C URL",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Database URLDatabase URL",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "DATABASE_USER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "PLATFORM_AES_KEY": {
                      "isOptional": false,
                      "description": "Platform AES encryption key",
                      "defaultValue": "${{gateway.PLATFORM_AES_KEY}}"
                    },
                    "DATABASE_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Which Dockerfile in the template repo builds this service. Do not change.",
                      "defaultValue": "services/metrics-service/Dockerfile"
                    }
                  }
                },
                "d2841e1f-a0b0-444e-b7c2-6edafcc479e9": {
                  "icon": null,
                  "name": "probe-scheduler",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/tracedown/tracedown-railway-template",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Probe Scheduler port",
                      "defaultValue": "20810"
                    },
                    "GATEWAY_URL": {
                      "isOptional": false,
                      "description": "Gateway internal URL",
                      "defaultValue": "http://${{gateway.RAILWAY_PRIVATE_DOMAIN}}:20714"
                    },
                    "REDIS_A_URL": {
                      "isOptional": false,
                      "description": "Redis A URL",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "REDIS_B_URL": {
                      "isOptional": false,
                      "description": "Redis B URL",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "REDIS_C_URL": {
                      "isOptional": false,
                      "description": "Redis C URL",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Database URLDatabase URL",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "DATABASE_USER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "PLATFORM_AES_KEY": {
                      "isOptional": false,
                      "description": "Platform AES encryption key",
                      "defaultValue": "${{gateway.PLATFORM_AES_KEY}}"
                    },
                    "DATABASE_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Which Dockerfile in the template repo builds this service. Do not change.",
                      "defaultValue": "services/probe-scheduler/Dockerfile"
                    }
                  }
                },
                "d40a85e4-4f1c-4e0b-8977-57397a92d44d": {
                  "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\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Redis host",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Redis port",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Redis user",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis URL",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Redis password",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis password",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "d40a85e4-4f1c-4e0b-8977-57397a92d44d": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "proxy",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 11,
    "needs_volume": true
  },
  "generated_at": "2026-09-16T22:14:52.145Z",
  "generator_version": "0.1.0"
}
