{
  "manifest_version": "1.0.0",
  "template": {
    "id": "30224358-84a0-44fc-8e67-93e57cb6d522",
    "slug": "pocketbase-backend",
    "name": "PocketBase | Open-Source Backend in One File (Database, Auth, Files, Realtime)",
    "description": "Database, auth, file storage, realtime and admin UI in one Go binary",
    "url": "https://railway.com/deploy/pocketbase-backend",
    "upstream": {
      "repo_url": "https://github.com/two-workspaces/pocketbase"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "PocketBase",
      "source": {
        "repo": "https://github.com/two-workspaces/pocketbase"
      },
      "needs_volume": true,
      "volume_mount_path": "/pb_data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "PocketBase",
      "description": "Port Railway routes to - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "8090"
    },
    {
      "key": "PB_APP_URL",
      "service": "PocketBase",
      "description": "Public URL used in emails and OAuth2 redirects, set on first boot - change it later in Settings",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PB_ADMIN_EMAIL",
      "service": "PocketBase",
      "description": "Email you sign in to the dashboard with - the superuser is created on first boot",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "PB_ADMIN_PASSWORD",
      "service": "PocketBase",
      "description": "Superuser password, used on first boot only - change it later in the dashboard",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PB_ENCRYPTION_KEY",
      "service": "PocketBase",
      "description": "Encrypts stored settings (SMTP, S3, OAuth2 secrets) - never change it after the first boot",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "pocketbase-backend"
      }
    },
    "cli": "railway deploy --template pocketbase-backend",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "30224358-84a0-44fc-8e67-93e57cb6d522",
            "serializedConfig": {
              "services": {
                "8f3c2a61-5d4e-4b7a-9c1f-2e6d8a0b4c71": {
                  "icon": "https://raw.githubusercontent.com/two-workspaces/pocketbase/main/icon.svg",
                  "name": "PocketBase",
                  "build": {
                    "dockerfilePath": "Dockerfile"
                  },
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/two-workspaces/pocketbase",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway routes to - leave as is",
                      "defaultValue": "8090"
                    },
                    "PB_APP_URL": {
                      "isOptional": false,
                      "description": "Public URL used in emails and OAuth2 redirects, set on first boot - change it later in Settings",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "PB_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Email you sign in to the dashboard with - the superuser is created on first boot",
                      "defaultValue": "{{PB_ADMIN_EMAIL}}"
                    },
                    "PB_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password, used on first boot only - change it later in the dashboard",
                      "defaultValue": "{{PB_ADMIN_PASSWORD}}"
                    },
                    "PB_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Encrypts stored settings (SMTP, S3, OAuth2 secrets) - never change it after the first boot",
                      "defaultValue": "{{PB_ENCRYPTION_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "3b9e7d24-1a6c-4f58-8e2b-7c4d9f0a1e35": {
                      "mountPath": "/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-10-27T04:14:46.034Z",
  "generator_version": "0.1.0"
}
