{
  "manifest_version": "1.0.0",
  "template": {
    "id": "dc1279e4-f2e1-41bd-920e-afe5d47de2c2",
    "slug": "pocketbase-3",
    "name": "PocketBase",
    "description": "Single-file backend with database, auth, file storage, and admin UI",
    "url": "https://railway.com/deploy/pocketbase-3",
    "upstream": {
      "repo_url": "https://github.com/Xorgentur/pocketbase-template"
    }
  },
  "services": [
    {
      "name": "pocketbase-template",
      "source": {
        "repo": "https://github.com/Xorgentur/pocketbase-template"
      },
      "needs_volume": true,
      "volume_mount_path": "/pb/pb_data",
      "http": true
    }
  ],
  "required_inputs": [],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "pocketbase-3"
      }
    },
    "cli": "railway deploy --template pocketbase-3",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "dc1279e4-f2e1-41bd-920e-afe5d47de2c2",
            "serializedConfig": {
              "services": {
                "b6327c53-7164-4963-b2b2-a45f9eaa2367": {
                  "icon": "https://pocketbase.io/images/logo.svg",
                  "name": "pocketbase-template",
                  "deploy": {
                    "healthcheckPath": "/api/health"
                  },
                  "source": {
                    "repo": "Xorgentur/pocketbase-template",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "GOMEMLIMIT": {
                      "isOptional": true,
                      "description": "Memory limit to prevent OOM crashes in MB (e.g. `512`, `1024`)",
                      "defaultValue": ""
                    },
                    "PB_ENCRYPTION_KEY": {
                      "isOptional": true,
                      "description": "32-character key to encrypt sensitive settings (e.g. SMTP passwords)",
                      "defaultValue": ""
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "b6327c53-7164-4963-b2b2-a45f9eaa2367": {
                      "mountPath": "/pb/pb_data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "pocketbase-template",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T16:15:12.787Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T16:07:51.310Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_3fe5189ec6e94ebe80e3",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 80,
    "typical_build_seconds": 10,
    "typical_start_seconds": 10,
    "slowest_service": "pocketbase-template"
  }
}
