Self-hosting PocketBase the easy way

Self-hosting PocketBase the easy way

Yulei Chen - Content-Engineerin bei sliplane.ioYulei Chen
4 min

PocketBase is an open-source backend in a single file. It gives you a realtime database, user authentication, file storage, and a built-in admin dashboard - all powered by SQLite. It's perfect for SaaS projects, mobile apps, or any prototype that needs a backend fast.

Sliplane is a managed container platform that makes self-hosting painless. With one-click deployment, you can get PocketBase up and running in minutes - no server setup, no reverse proxy config, no infrastructure to maintain.

Prerequisites

Before deploying, ensure you have a Sliplane account (free trial available).

Quick start

Sliplane provides one-click deployment with presets.

SliplaneDeploy PocketBase >
  1. Click the deploy button above
  2. Select a project
  3. Select a server (If you just signed up you get a 48-hour free trial server)
  4. Click Deploy!

About the preset

The one-click deploy above uses Sliplane's PocketBase preset. Here's what it includes:

  • The community-maintained PocketBase Docker image (ghcr.io/coollabsio/pocketbase)
  • Specific version tag (0.38.1) for stability
  • Persistent storage for /app/pb_data (your database, uploaded files, and settings)
  • Persistent storage for /app/pb_hooks (custom JavaScript hooks)
  • Listens on port 8080 by default

Next steps

Once PocketBase is running on Sliplane, open the domain Sliplane provided (e.g. pocketbase-xxxx.sliplane.app).

Creating your admin account

PocketBase has no default credentials. On the first visit, go to /_/ (e.g. pocketbase-xxxx.sliplane.app/_/) to open the admin setup wizard. You'll create your admin email and password there. If the sign-up page doesn't appear, please go to the Logs of your PocketBase service. There is supposed to be the sign-up URL logged:

Logs
(!) Launch the URL below in the browser if it hasn't been open already to create your first superuser account:
http://0.0.0.0:8080/_/#/pbinstall/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb2xsZWN0aW9uSWQiOiJwYmNfMzE0MjYzNTgyMyIsImV4cCI6MTc3ODk0MDMwMSwiaWQiOiJ0MmYxNGd4NmxyY3l1dmkiLCJyZWZyZXNoYWJsZSI6ZmFsc2UsInR5cGUiOiJhdXRoIn0.RIiAnN9_EQ0GFzIJipznEhgkkwV7TKmgboelimszd9A

Admin dashboard

The admin dashboard at /_/ is where you manage everything: collections (your database tables), API rules, auth providers, file storage settings, and more. It's a full GUI - no SQL needed to get started.

Data storage

PocketBase stores everything in SQLite under /app/pb_data. This includes your database, uploaded files, and internal settings. The preset mounts this path to a persistent volume, so your data survives container restarts and redeployments.

Custom hooks

If you need server-side logic, PocketBase supports JavaScript hooks. Place your .pb.js files in /app/pb_hooks and they'll be loaded automatically on startup. The preset mounts this path to a separate persistent volume.

Logging

PocketBase logs to STDOUT by default, which works well with Sliplane's built-in log viewer. For general Docker log tips, check out our post on how to use Docker logs.

Troubleshooting

If the admin UI doesn't load, make sure you're visiting the /_/ path (with the trailing slash). If the service won't start, check the logs in the Sliplane dashboard for error messages. Common issues include volume permission errors, which are usually resolved by redeploying.

Cost comparison

You can also self-host PocketBase with other cloud providers. Here is a pricing comparison for the most common ones:

ProvidervCPURAMDiskMonthly CostNote
Sliplane22 GB50 GB€22.80Flat rate, free egress, SSL included
Fly.io22 GB40 GB~$17.83Disk and bandwidth billed separately
Render12 GB40 GB~$355 GB bandwidth included on Hobby; disk billed separately
Railway22 GB40 GBUp to ~$66Usage-based; Pro required for a 40 GB volume
Click here to see how these numbers were calculated.

Prices checked July 19, 2026. Assuming an always-on instance running 730 hrs/month, Germany/Amsterdam where regional pricing applies, excluding VAT and egress.

  • Sliplane: Base server with 2 vCPU, 2 GB RAM and 20 GB storage = €17.80/month; the 50 GB storage tier adds €5 -> €22.80/month. Unlimited services, free egress and SSL are included.
  • Fly.io: in Amsterdam, shared-cpu-2x with 2 GB RAM = $11.83/month + 40 GB volume × $0.15/GB = $6 -> ~$17.83/month. Egress is billed separately at $0.02/GB in Europe.
  • Render: closest match is Standard ($25, 1 vCPU / 2 GB) plus 40 GB disk × $0.25/GB = $10 -> ~$35/month. A Hobby workspace includes 5 GB bandwidth, then charges $0.15/GB. Stepping up to Pro compute (2 vCPU / 4 GB) costs $85/month plus disk.
  • Railway (Pro plan): at full resource usage: CPU 2 × $20/vCPU/month = $40; RAM 2 × $10/GB/month = $20; volume 40 × $0.15/GB/month = $6 -> up to ~$66/month. Actual CPU and RAM charges depend on usage. A 40 GB volume requires Pro; its $20/month subscription is a minimum commitment that counts toward usage, not an additional charge. Egress is $0.05/GB.

Bandwidth costs can add up fast on usage-based providers. Use our bandwidth cost comparison tool to see what your egress would cost on each platform.

Bandwidth Cost Growth Comparison

Move the slider or play the animation to compare monthly egress costs. Sliplane stays free as traffic grows.

0 GB
Sliplane
Free
Fly.io
$0.00
Railway
$0.00
Render
$0.00

Egress only, excluding compute and storage. Based on public US/European rates checked July 19, 2026. Render includes its first 5 GB per month. Sliplane egress is free, subject to the Fair Use Policy.

FAQ

What can I build with PocketBase?

PocketBase is great for any project that needs a backend quickly: SaaS apps, mobile apps, internal tools, or prototypes. It gives you a REST and realtime API, user auth (email/password, OAuth2), file uploads, and an admin UI out of the box. Many developers use it as a Directus or Firebase alternative.

How do I configure OAuth2 or email auth?

Go to the admin dashboard at /_/, navigate to Settings, and configure your auth providers there. PocketBase supports Google, GitHub, Facebook, and many other OAuth2 providers. You can also enable email/password auth and customize verification emails directly from the UI.

How do I update PocketBase?

Change the image tag in your Sliplane service settings to the new version and redeploy. Your data in /app/pb_data is stored on a persistent volume, so it's safe across redeployments. Always check the PocketBase changelog before upgrading to review any breaking changes.

Are there alternatives to PocketBase?

Yes. Popular options include Directus (a headless CMS with a powerful data studio), Strapi (another headless CMS focused on content APIs), NocoDB (an Airtable-like spreadsheet UI on top of databases), and Supabase (a Firebase alternative built on Postgres).

Can PocketBase handle production traffic?

Yes. PocketBase is surprisingly performant thanks to SQLite. For most small-to-medium apps, a single instance on a €9/month Sliplane server handles thousands of concurrent connections without issues. If you outgrow a single file, you can always migrate your data to an external database later.

Self-host PocketBase now - It's easy!

Sliplane gives you everything you need to run PocketBase without managing servers.