{"id":15531217,"url":"https://github.com/rodydavis/pocketbase-cloudrun","last_synced_at":"2026-03-11T20:30:58.990Z","repository":{"id":243440113,"uuid":"812427561","full_name":"rodydavis/pocketbase-cloudrun","owner":"rodydavis","description":"Run PocketBase on CloudRun with mounted volumes via Google Cloud Storage","archived":false,"fork":false,"pushed_at":"2024-06-14T23:53:53.000Z","size":3013,"stargazers_count":47,"open_issues_count":1,"forks_count":24,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-02-01T13:13:53.424Z","etag":null,"topics":["cloud-run","cloud-storage","google","google-cloud","google-cloud-run","google-cloud-storage","local-first","pocketbase","sqlite"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rodydavis.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-06-08T21:31:39.000Z","updated_at":"2026-01-13T08:24:56.000Z","dependencies_parsed_at":"2024-06-15T00:39:24.434Z","dependency_job_id":null,"html_url":"https://github.com/rodydavis/pocketbase-cloudrun","commit_stats":null,"previous_names":["rodydavis/pocketbase-cloudrun"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/rodydavis/pocketbase-cloudrun","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodydavis%2Fpocketbase-cloudrun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodydavis%2Fpocketbase-cloudrun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodydavis%2Fpocketbase-cloudrun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodydavis%2Fpocketbase-cloudrun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rodydavis","download_url":"https://codeload.github.com/rodydavis/pocketbase-cloudrun/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodydavis%2Fpocketbase-cloudrun/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30399255,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T18:46:22.935Z","status":"ssl_error","status_checked_at":"2026-03-11T18:46:17.045Z","response_time":84,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud-run","cloud-storage","google","google-cloud","google-cloud-run","google-cloud-storage","local-first","pocketbase","sqlite"],"created_at":"2024-10-02T11:25:14.768Z","updated_at":"2026-03-11T20:30:58.974Z","avatar_url":"https://github.com/rodydavis.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PocketBase on CloudRun\n\nIt is now possible to run [PocketBase](https://pocketbase.io/) on Google [CloudRun](https://cloud.google.com/run?hl=en) because of the recent support for [mounting volumes](https://cloud.google.com/run/docs/configuring/services/cloud-storage-volume-mounts). This is a guide on how to deploy PocketBase on Google Cloud Run.\n\n\u003e Disclaimer: This is not an official Google project.\n\n## Features\n\n- Scale to zero\n- Infinite storage (and file deletion protection, file versions, and multi region)\n- `pb_data`/`pb_public`/`pb_hooks` all in the same file system\n- Backups can be done either by PocketBase or by protecting the bucket\n\n## Prerequisites\n\n- Google Cloud project\n- Google Cloud Storage bucket\n\n## Getting Started\n\nFork this repository or \"Use this template\" to create your own repository.\n\nDeploy following the guide on the [official documentation](https://cloud.google.com/run/docs/building/containers#building_using_a_dockerfile).\n\n## Steps\n\n### Create a new service\n\n![](/screenshots/create-service.png)\n\n#### Google Cloud Build\n\n- Setup with Cloud Build\n  - Repository Provider: `GitHub`\n  - Select Repository: `THIS_REPOSITORY_FORK`\n- Branch: `main`\n- Build Configuration: `Dockerfile`\n\n#### General Settings\n\n- Allow unauthenticated invocations\n- CPU is only allocated when the service is handling requests\n- Maximum number of requests per container is set to `1000`\n- Maximum number of containers is set to `1`\n- Timeout is set to `3600`\n- Ingress is set to internal and `all` traffic\n\n#### Container(s), Volumes, Networking, Security\n\n##### Volumes\n\n- Add volume\n  - Volume type: `Google Storage bucket`\n  - Volume name: `remote-storage (or any name you want)`\n  - Bucket: `YOUR_BUCKET_NAME`\n  - Read-only: `false`\n\n##### Container(s)\n- Startup CPU boost is `enabled`\n- Volume mount (s)\n  - Volume name: `remote-storage`\n  - Mount path: `/cloud/storage`\n\n#### Health Checks\n\nYou can add a health check to your service that uses Pocketbase's health check endpoint `/api/health`.\n\n![](/screenshots/health-check.png)\n\n### Deployed\n\nNow create the service and wait for the cloud build to finish.\n\nIf everything goes well, you should see the service deployed.\n\n![](/screenshots/deployed.png)\n\n## FAQ\n\n### What if I have local files that I want to use?\n\n`pb_data`, `pb_public`, and `pb_hooks` are all directories you might use during development.\n\nYou can upload these directories to your Google Cloud Storage bucket you created earlier to the root directory.\n\n### Can I use a custom domain?\n\nYes, you can use a custom domain. You can follow the guide on the [official documentation](https://cloud.google.com/run/docs/mapping-custom-domains).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodydavis%2Fpocketbase-cloudrun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodydavis%2Fpocketbase-cloudrun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodydavis%2Fpocketbase-cloudrun/lists"}