{
  "manifest_version": "1.0.0",
  "template": {
    "id": "950205f5-866d-4979-a977-c69d6a58bc2e",
    "slug": "paradedb-railway",
    "name": "ParadeDB",
    "description": "ParadeDB: Postgres with BM25 full-text search, vector retrieval & analytics",
    "url": "https://railway.com/deploy/paradedb-railway",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/paradedb-railway"
    }
  },
  "services": [
    {
      "name": "paradedb",
      "source": {
        "repo": "https://github.com/gridalpha/paradedb-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "tcp_ports": [
        5432
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "paradedb",
      "description": "Health responder port, not the database port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "PGHOST",
      "service": "paradedb",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "paradedb",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "paradedb",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_BUCKET",
      "service": "paradedb",
      "description": "Backup bucket name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "paradedb",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "paradedb",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "APP_DB_USER",
      "service": "paradedb",
      "description": "Least-privilege application role",
      "secret": false,
      "strategy": "default",
      "default": "app"
    },
    {
      "key": "POSTGRES_DB",
      "service": "paradedb",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "paradedb"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "paradedb",
      "description": "Backup bucket endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "paradedb",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "paradedb",
      "description": "Superuser created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "APP_DB_PASSWORD",
      "service": "paradedb",
      "description": "Application role password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "paradedb",
      "description": "Backup bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "paradedb",
      "description": "Superuser password, read by initdb",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "AWS_DEFAULT_REGION",
      "service": "paradedb",
      "description": "Backup bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_ADMIN_URL",
      "service": "paradedb",
      "description": "Private superuser connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "paradedb",
      "description": "Public connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "paradedb",
      "description": "Backup bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BACKUP_INTERVAL_HOURS",
      "service": "paradedb",
      "description": "Hours between base backups",
      "secret": false,
      "strategy": "default",
      "default": "24"
    },
    {
      "key": "BACKUP_RETENTION_DAYS",
      "service": "paradedb",
      "description": "Recovery window in days",
      "secret": false,
      "strategy": "default",
      "default": "7"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "paradedb",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "30"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "paradedb-railway"
      }
    },
    "cli": "railway deploy --template paradedb-railway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "950205f5-866d-4979-a977-c69d6a58bc2e",
            "serializedConfig": {
              "buckets": {
                "f6a7283e-9f1e-4b41-8098-711f45c02d69": {
                  "name": "paradedb-backups"
                }
              },
              "services": {
                "aa87bc0f-116f-42cb-8b35-1c8f9b05a0ee": {
                  "icon": "https://devicons.railway.com/i/paradedb.svg",
                  "name": "paradedb",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/paradedb-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Health responder port, not the database port",
                      "defaultValue": "8080"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "Backup bucket name",
                      "defaultValue": "${{paradedb-backups.BUCKET}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "APP_DB_USER": {
                      "isOptional": false,
                      "description": "Least-privilege application role",
                      "defaultValue": "app"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "paradedb"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Backup bucket endpoint",
                      "defaultValue": "${{paradedb-backups.ENDPOINT}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "postgresql://${{APP_DB_USER}}:${{APP_DB_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{POSTGRES_DB}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser created on first boot",
                      "defaultValue": "postgres"
                    },
                    "APP_DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Application role password",
                      "defaultValue": "{{APP_DB_PASSWORD}}"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Backup bucket access key",
                      "defaultValue": "${{paradedb-backups.ACCESS_KEY_ID}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password, read by initdb",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "AWS_DEFAULT_REGION": {
                      "isOptional": false,
                      "description": "Backup bucket region",
                      "defaultValue": "${{paradedb-backups.REGION}}"
                    },
                    "DATABASE_ADMIN_URL": {
                      "isOptional": false,
                      "description": "Private superuser connection string",
                      "defaultValue": "postgresql://${{POSTGRES_USER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{POSTGRES_DB}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public connection string",
                      "defaultValue": "postgresql://${{APP_DB_USER}}:${{APP_DB_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{POSTGRES_DB}}?sslmode=require"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Backup bucket secret key",
                      "defaultValue": "${{paradedb-backups.SECRET_ACCESS_KEY}}"
                    },
                    "BACKUP_INTERVAL_HOURS": {
                      "isOptional": false,
                      "description": "Hours between base backups",
                      "defaultValue": "24"
                    },
                    "BACKUP_RETENTION_DAYS": {
                      "isOptional": false,
                      "description": "Recovery window in days",
                      "defaultValue": "7"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    }
                  },
                  "volumeMounts": {
                    "aa87bc0f-116f-42cb-8b35-1c8f9b05a0ee": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-21T20:02:58.092Z",
  "success_rate_30d": 0.1429,
  "validation": {
    "last_run_id": "run_77ae0b58dd29427c84e0",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ],
    "typical_ready_seconds": 182
  }
}
