{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c8e5aeed-c466-4ee6-8321-682271a7a5b7",
    "slug": "drizzle-studio-gateway",
    "name": "Drizzle Studio Gateway",
    "description": "Deploy Drizzle Studio Gateway with Railway",
    "url": "https://railway.com/deploy/drizzle-studio-gateway",
    "upstream": {
      "image": "ghcr.io/drizzle-team/gateway:latest"
    }
  },
  "services": [
    {
      "name": "Drizzle Gateway",
      "source": {
        "image": "ghcr.io/drizzle-team/gateway:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Drizzle Gateway",
      "description": "Port the gateway listens on. Railway assigns its own port when this is unset, and the gateway binds that instead.",
      "secret": false,
      "strategy": "default",
      "default": "4983"
    },
    {
      "key": "MASTERPASS",
      "service": "Drizzle Gateway",
      "description": "The admin password for secure access",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "drizzle-studio-gateway"
      }
    },
    "cli": "railway deploy --template drizzle-studio-gateway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c8e5aeed-c466-4ee6-8321-682271a7a5b7",
            "serializedConfig": {
              "services": {
                "a905e1c4-83b8-4527-8e38-105939b90661": {
                  "icon": "https://gateway.drizzle.studio/favicon.svg",
                  "name": "Drizzle Gateway",
                  "deploy": {
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "image": "ghcr.io/drizzle-team/gateway:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Port the gateway listens on. Railway assigns its own port when this is unset, and the gateway binds that instead.",
                      "defaultValue": "4983"
                    },
                    "MASTERPASS": {
                      "isOptional": false,
                      "description": "The admin password for secure access",
                      "defaultValue": "{{MASTERPASS}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "a905e1c4-83b8-4527-8e38-105939b90661": {
                      "mountPath": "/app"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Drizzle Gateway",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-18T22:14:40.474Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-18T20:34:11.168Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_ff67d92018f94aa0a824",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 39,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "Drizzle Gateway"
  }
}
