{
  "manifest_version": "1.0.0",
  "template": {
    "id": "87242d4c-85d8-4373-bf0d-f6b543c59d0b",
    "slug": "pocketbase-litestream-hooks",
    "name": "PocketBase + Litestream + Hooks",
    "description": "PocketBase with Litestream backups, easy hooks and api rules management.",
    "url": "https://railway.com/deploy/pocketbase-litestream-hooks",
    "upstream": {
      "repo_url": "https://github.com/orenaksakal/pocketbase-litestream-railway"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Pocketbase + Litestream + Hooks and Api Rules",
      "source": {
        "repo": "https://github.com/orenaksakal/pocketbase-litestream-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/pb_data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "S3_PATH",
      "service": "Pocketbase + Litestream + Hooks and Api Rules",
      "description": "S3 Bucket path Litestream should use",
      "secret": false,
      "strategy": "default",
      "default": "backups"
    },
    {
      "key": "S3_BUCKET",
      "service": "Pocketbase + Litestream + Hooks and Api Rules",
      "description": "S3 Bucket name Litestream should use",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_REGION",
      "service": "Pocketbase + Litestream + Hooks and Api Rules",
      "description": "S3 Bucket region Litestream should use",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PB_ORIGINS",
      "service": "Pocketbase + Litestream + Hooks and Api Rules",
      "description": "Origin urls you would like your api to support e.g. http://localhost:3000 or https://www.yoursite.com",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "PB_VERSION",
      "service": "Pocketbase + Litestream + Hooks and Api Rules",
      "description": "Pocketbase version you would like to deploy",
      "secret": false,
      "strategy": "default",
      "default": "0.36.4"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "Pocketbase + Litestream + Hooks and Api Rules",
      "description": "S3 Bucket endpoint Litestream should use",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DASH_REPO_URL",
      "service": "Pocketbase + Litestream + Hooks and Api Rules",
      "description": "Hooks dashboard plugin source url",
      "secret": false,
      "strategy": "default",
      "default": "https://github.com/orenaksakal/pb-hooks-dash/archive/refs/heads/main.zip"
    },
    {
      "key": "S3_ACCESS_KEY",
      "service": "Pocketbase + Litestream + Hooks and Api Rules",
      "description": "S3 Bucket access key Litestream should use",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET_KEY",
      "service": "Pocketbase + Litestream + Hooks and Api Rules",
      "description": "S3 Bucket secret key Litestream should use",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RULES_REPO_URL",
      "service": "Pocketbase + Litestream + Hooks and Api Rules",
      "description": "Pocketbase rules board plugin source url",
      "secret": false,
      "strategy": "default",
      "default": "https://github.com/orenaksakal/pb-rules-overview/archive/refs/heads/main.zip"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "pocketbase-litestream-hooks"
      }
    },
    "cli": "railway deploy --template pocketbase-litestream-hooks",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "87242d4c-85d8-4373-bf0d-f6b543c59d0b",
            "serializedConfig": {
              "buckets": {
                "04d7b32c-7628-4184-9494-b65d7b809034": {
                  "name": "backups-bucket"
                }
              },
              "services": {
                "d024dda0-5035-4f41-9be2-aa19566ef616": {
                  "icon": "https://pocketbase.io/images/logo.svg",
                  "name": "Pocketbase + Litestream + Hooks and Api Rules",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/orenaksakal/pocketbase-litestream-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "S3_PATH": {
                      "isOptional": false,
                      "description": "S3 Bucket path Litestream should use",
                      "defaultValue": "backups"
                    },
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "S3 Bucket name Litestream should use",
                      "defaultValue": "${{backups-bucket.BUCKET}}"
                    },
                    "S3_REGION": {
                      "isOptional": false,
                      "description": "S3 Bucket region Litestream should use",
                      "defaultValue": "${{backups-bucket.REGION}}"
                    },
                    "PB_ORIGINS": {
                      "isOptional": false,
                      "description": "Origin urls you would like your api to support e.g. http://localhost:3000 or https://www.yoursite.com",
                      "defaultValue": "{{PB_ORIGINS}}"
                    },
                    "PB_VERSION": {
                      "isOptional": false,
                      "description": "Pocketbase version you would like to deploy",
                      "defaultValue": "0.36.4"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3 Bucket endpoint Litestream should use",
                      "defaultValue": "${{backups-bucket.ENDPOINT}}"
                    },
                    "DASH_REPO_URL": {
                      "isOptional": false,
                      "description": "Hooks dashboard plugin source url",
                      "defaultValue": "https://github.com/orenaksakal/pb-hooks-dash/archive/refs/heads/main.zip"
                    },
                    "S3_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "S3 Bucket access key Litestream should use",
                      "defaultValue": "${{backups-bucket.ACCESS_KEY_ID}}"
                    },
                    "S3_SECRET_KEY": {
                      "isOptional": false,
                      "description": "S3 Bucket secret key Litestream should use",
                      "defaultValue": "${{backups-bucket.SECRET_ACCESS_KEY}}"
                    },
                    "RULES_REPO_URL": {
                      "isOptional": false,
                      "description": "Pocketbase rules board plugin source url",
                      "defaultValue": "https://github.com/orenaksakal/pb-rules-overview/archive/refs/heads/main.zip"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "d024dda0-5035-4f41-9be2-aa19566ef616": {
                      "mountPath": "/app/pb_data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Pocketbase + Litestream + Hooks and Api Rules",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0"
}
