{
  "manifest_version": "1.0.0",
  "template": {
    "id": "04d9de46-d101-40fb-b592-8af464ca0d42",
    "slug": "pocketbase-backend-1",
    "name": "PocketBase Backend Kit",
    "description": "The easiest way to run PocketBase on Railway, production-ready",
    "url": "https://railway.com/deploy/pocketbase-backend-1",
    "upstream": {
      "repo_url": "https://github.com/ggmmwwqq/PocketBase-Railway-Kit"
    }
  },
  "services": [
    {
      "name": "PocketBase-Railway-Kit",
      "source": {
        "repo": "https://github.com/ggmmwwqq/PocketBase-Railway-Kit"
      },
      "needs_volume": true,
      "volume_mount_path": "/pb_data",
      "http": true
    }
  ],
  "required_inputs": [],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "pocketbase-backend-1"
      }
    },
    "cli": "railway deploy --template pocketbase-backend-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "04d9de46-d101-40fb-b592-8af464ca0d42",
            "serializedConfig": {
              "services": {
                "37d1e096-0798-417a-88d5-45cfae695fea": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/pocketbase.png",
                  "name": "PocketBase-Railway-Kit",
                  "deploy": {
                    "healthcheckPath": "/health",
                    "restartPolicyMaxRetries": 3
                  },
                  "source": {
                    "repo": "ggmmwwqq/PocketBase-Railway-Kit",
                    "branch": null,
                    "rootDirectory": "/"
                  },
                  "variables": {
                    "PB_ADMIN_EMAIL": {
                      "isOptional": true,
                      "description": "Auto-create admin account on first deploy (requires PB_ADMIN_PASSWORD)",
                      "defaultValue": ""
                    },
                    "PB_ADMIN_PASSWORD": {
                      "isOptional": true,
                      "description": "Admin password (requires PB_ADMIN_EMAIL)",
                      "defaultValue": ""
                    },
                    "PB_ENCRYPTION_KEY": {
                      "isOptional": true,
                      "description": "Encryption key for stored secrets. Generate with: openssl rand -base64 32",
                      "defaultValue": ""
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "37d1e096-0798-417a-88d5-45cfae695fea": {
                      "mountPath": "/pb_data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "PocketBase-Railway-Kit",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T10:05:32.609Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_c7aacde24d854915a513",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 112,
    "typical_build_seconds": 11,
    "typical_start_seconds": 10,
    "slowest_service": "PocketBase-Railway-Kit"
  }
}
