How To Deploy Pocketbase To Cloud Run
Deploy PocketBase to Google Cloud Run quickly using this guide from rodydavis for scalable backend solutions.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add how-to-deploy-pocketbase-to-cloud-run npx -- -y @trustedskills/how-to-deploy-pocketbase-to-cloud-run
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"how-to-deploy-pocketbase-to-cloud-run": {
"command": "npx",
"args": [
"-y",
"@trustedskills/how-to-deploy-pocketbase-to-cloud-run"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill enables AI agents to deploy PocketBase, a full-stack backend solution, to Google Cloud Run. It leverages recent support for mounting volumes in Cloud Run to provide scalable deployments with features like infinite storage and file versioning. The deployment process utilizes Google Cloud Build and integrates directly with GitHub repositories.
When to use it
- You need to quickly deploy a PocketBase backend application.
- You want to leverage the scalability of Google Cloud Run for your PocketBase instance.
- You require persistent storage for your PocketBase data, accessible via Google Cloud Storage.
- You're comfortable using GitHub and Google Cloud services.
Key capabilities
- Scalable Deployment: Deploys PocketBase on Google Cloud Run, allowing it to scale automatically based on demand.
- Infinite Storage: Utilizes Google Cloud Storage for persistent storage of PocketBase data.
- File Versioning & Protection: Offers file deletion protection and versioning capabilities through the connected Google Cloud Storage bucket.
- Integrated Backup Options: Supports backups either natively within PocketBase or by protecting the associated Google Cloud Storage bucket.
- Volume Mounting: Mounts
pb_data,pb_public, andpb_hooksdirectories to a shared file system via a Google Storage bucket volume.
Example prompts
- "Deploy my forked PocketBase repository to Google Cloud Run using the provided guide."
- "Create a Cloud Run service with PocketBase, mounting my Google Cloud Storage bucket named 'my-bucket' as '/cloud/storage'."
- “Set up a health check endpoint on the deployed Pocketbase instance at /api/health.”
Tips & gotchas
- Prerequisites: Requires an existing Google Cloud project and a Google Cloud Storage bucket.
- Local Files: Local development files in
pb_data,pb_public, orpb_hooksneed to be uploaded to your Google Cloud Storage bucket before deployment. - Custom Domains: Using a custom domain requires following the instructions in the official PocketBase documentation, which is not covered by this skill.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.