{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f13b9827-e4b2-473d-bb66-90e498cdba9e",
    "slug": "pocketbase-5",
    "name": "PocketBase",
    "description": "PocketBase — instant backend: embedded DB, auth, files, realtime API",
    "url": "https://railway.com/deploy/pocketbase-5",
    "upstream": {
      "repo_url": "https://github.com/INAPP-Mobile/railway-pocketbase"
    }
  },
  "services": [
    {
      "name": "pocketbase",
      "source": {
        "repo": "https://github.com/INAPP-Mobile/railway-pocketbase"
      },
      "needs_volume": true,
      "volume_mount_path": "/pb_data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "pocketbase",
      "description": "Port PocketBase listens on (default: 8080). Railway injects PORT for routing.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "ADMIN_USER",
      "service": "pocketbase",
      "description": "Email of the first PocketBase superuser. PocketBase CLI requires email format. Used only on first boot against an empty /pb_data volume to auto-seed the admin account.",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "pocketbase",
      "description": "Initial password for the auto-seeded first superuser (>=5 chars). The shipped default is a GENERIC PLACEHOLDER — every marketplace deploy of this template starts with the same password because template serializedConfig is publicly readable. **ROTATE THIS FROM THE ADMIN UI IMMEDIATELY AFTER FIRST LOGIN.** Set to a real value, or override with the placeholder + the rotate workflow below.",
      "secret": true,
      "strategy": "default",
      "default": "ChangeMePocketbase2026!"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "pocketbase",
      "description": "Encryption key for encrypting app settings (32 hex chars). Auto-generated on first deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "pocketbase-5"
      }
    },
    "cli": "railway deploy --template pocketbase-5",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f13b9827-e4b2-473d-bb66-90e498cdba9e",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "98a8aba1-bbd6-48e7-a32c-e05d4c0e59fd": {
                  "icon": null,
                  "name": "pocketbase",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/INAPP-Mobile/railway-pocketbase",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "description": "Port PocketBase listens on (default: 8080). Railway injects PORT for routing.",
                      "defaultValue": "8080"
                    },
                    "ORIGINS": {
                      "isOptional": true,
                      "description": "CORS allowed origins (comma-separated). Set to your custom domain if using one.",
                      "defaultValue": ""
                    },
                    "ADMIN_USER": {
                      "description": "Email of the first PocketBase superuser. PocketBase CLI requires email format. Used only on first boot against an empty /pb_data volume to auto-seed the admin account.",
                      "defaultValue": "admin@example.com"
                    },
                    "ADMIN_PASSWORD": {
                      "description": "Initial password for the auto-seeded first superuser (>=5 chars). The shipped default is a GENERIC PLACEHOLDER — every marketplace deploy of this template starts with the same password because template serializedConfig is publicly readable. **ROTATE THIS FROM THE ADMIN UI IMMEDIATELY AFTER FIRST LOGIN.** Set to a real value, or override with the placeholder + the rotate workflow below.",
                      "defaultValue": "ChangeMePocketbase2026!"
                    },
                    "ENCRYPTION_KEY": {
                      "description": "Encryption key for encrypting app settings (32 hex chars). Auto-generated on first deploy.",
                      "defaultValue": "{{ENCRYPTION_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "98a8aba1-bbd6-48e7-a32c-e05d4c0e59fd": {
                      "mountPath": "/pb_data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T08:33:46.532Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_6e402bfadec74e5e936b",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 105,
    "typical_build_seconds": 10,
    "typical_start_seconds": 10,
    "slowest_service": "pocketbase"
  }
}
