{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f0e70cb0-e3bb-4049-a38b-d198f7c46b08",
    "slug": "pocketbase-railway",
    "name": "pocketbase-railway",
    "description": "🪄 Full-text search, soft delete, webhooks, anonymous auth, CSV/JSON import",
    "url": "https://railway.com/deploy/pocketbase-railway",
    "upstream": {
      "repo_url": "https://github.com/8u9i/pocketbase-railway"
    }
  },
  "services": [
    {
      "name": "pocketbase",
      "source": {
        "repo": "https://github.com/8u9i/pocketbase-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/pb/pb_data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "pocketbase",
      "description": "port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PB_ADMIN_EMAIL",
      "service": "pocketbase",
      "description": "CHANGE ME",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "PB_ADMIN_PASSWORD",
      "service": "pocketbase",
      "description": "CHANGE ME PASS",
      "secret": true,
      "strategy": "default",
      "default": "changeme1234"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "pocketbase-railway"
      }
    },
    "cli": "railway deploy --template pocketbase-railway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f0e70cb0-e3bb-4049-a38b-d198f7c46b08",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "74058876-c2f5-4662-b084-829ae78d98b1": {
                  "icon": "https://pocketbase.io/images/logo.svg",
                  "name": "pocketbase",
                  "deploy": {
                    "startCommand": "/pb/entrypoint.sh",
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/8u9i/pocketbase-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "port",
                      "defaultValue": "${{pocketbase.PORT}}"
                    },
                    "PB_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "CHANGE ME",
                      "defaultValue": "admin@example.com"
                    },
                    "PB_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "CHANGE ME PASS",
                      "defaultValue": "changeme1234"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "74058876-c2f5-4662-b084-829ae78d98b1": {
                      "mountPath": "/pb/pb_data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "pocketbase",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T13:00:10.311Z",
  "success_rate_30d": 0.8333,
  "validation": {
    "last_run_id": "run_99d96daa7242412a8f03",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 114,
    "typical_build_seconds": 40,
    "typical_start_seconds": 10,
    "slowest_service": "pocketbase"
  }
}
