pb-deploy
Skill by davila7
Provides a production deployment guide for PocketBase, covering systemd, Docker, reverse proxies, TLS, SMTP, backups, S3 storage and hardening. It is aimed at people who run PocketBase on their own server and want ready-to-use configs.
Install pb-deploy
Built from the published package, never by AI.
git clone --depth 1 https://github.com/davila7/claude-code-templates /tmp/claude-code-templates && mkdir -p ~/.claude/skills && cp -r /tmp/claude-code-templates/cli-tool/components/skills/pocketbase/pb-deploy ~/.claude/skills/pb-deployRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/davila7/claude-code-templates /tmp/claude-code-templates && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claude-code-templates/cli-tool/components/skills/pocketbase/pb-deploy ~/.gemini/antigravity-cli/skills/pb-deployAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an assistant a production deployment guide for PocketBase. The source describes PocketBase as a single binary with no runtime dependencies, with data stored in a pb_data folder. The guide covers running the binary, a systemd service with security options and file descriptor limits, a Dockerfile and docker-compose file, and reverse proxy configs for Caddy and nginx.
It also covers SMTP setup through a pb_hooks script, superuser MFA, a settings encryption key, rate limit rules, and S3 storage for uploads. Backup methods include the built-in feature, SQLite's hot backup command and a sample daily backup script. The source ends with a deployment checklist. It is written for people deploying PocketBase to a server.
Written from the project's SKILL.md and checked against it.
What it can do
- Single binary setupShows how to download, make executable and run PocketBase with the serve command.
- systemd serviceProvides a unit file with restart policy, security hardening and file descriptor limit options.
- Docker setupProvides a Dockerfile and docker-compose.yml with a localhost-bound port and health check.
- Caddy reverse proxyGives a short Caddyfile config that handles TLS certificates automatically.
- nginx reverse proxyGives an nginx config with HTTPS, admin path blocking and settings for SSE realtime.
- SMTP configurationShows how to set mail settings through a pb_hooks script using environment variables.
- Security hardeningCovers superuser MFA, a settings encryption key, rate limits and dashboard access over SSH tunnel.
- S3 storageShows how to offload file uploads to S3-compatible storage providers.
- BackupsCovers built-in backups, SQLite hot backup commands and a daily backup script with retention.
- Deployment checklistLists twelve production checks, from TLS and firewall rules to backups and monitoring.
What you need
- A Linux server with systemd
- Docker, if using the Docker setup
- Caddy or nginx as a reverse proxy
- An S3-compatible storage provider, if using S3
Try asking
- Write a systemd service file for my PocketBase binary on Linux.
- Set up an nginx reverse proxy for PocketBase with SSE realtime support.
- Create a daily backup script for my PocketBase SQLite database.
Good to know
- Losing the PB_ENCRYPTION_KEY makes encrypted settings impossible to decrypt.
- The dashboard backup locks the database briefly.
- Do not copy the .db file directly while PocketBase is running.
- Version numbers in the download URLs are placeholders (v0.X.X).
Security check
C- Asks for administrator rights (sudo)In
cli-tool/components/skills/pocketbase/pb-deploy/SKILL.md:sudo
Checked automatically: cli-tool/components/skills/pocketbase/pb-deploy/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB
Alternatives to pb-deploy
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
pb-deploy: common questions
How do I expose PocketBase safely in production?
The source recommends binding PocketBase to 127.0.0.1 and exposing it through Caddy or nginx with TLS. Only ports 80 and 443 should be open to the public.
Does the nginx config work with realtime subscriptions?
The source says proxy_buffering off and a long proxy_read_timeout must be set for SSE subscriptions to work.
How should I back up a PocketBase database?
The source suggests SQLite's .backup command for large databases and warns against copying the .db file while PocketBase is running.
How do I install pb-deploy?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is pb-deploy free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is pb-deploy safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade C (asks for administrator rights (sudo)). Review the code before you install. How grades work.
What are alternatives to pb-deploy?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
