Self-host PocketBase with Levelrail

Verified

An open-source backend in one file: embedded database, auth, file storage, and realtime API.

  • AuthorpocketbaseVerified by Levelrail
  • LicenceMIT
  • Memory128 MiB
  • Archarm64
  • Services1

How to self-host PocketBase

  1. Pull the images

    One image is pulled on your server.

    Show images
    • ghcr.io/muchobien/pocketbase:0.22.27
  2. Create the app

    One service starts in a single Compose app, with 1 named volume mount for your data, on port 8090.

  3. Fill in the secrets

    You do not have to fill in anything.

  4. Open it

    Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.

PocketBase requirements

Memory
About 128 MiB
Architectures
amd64 image published, arm64 tested
Ports
8090
Domain
Optional, an sslip.io address is used without one
Settings
none to fill in
License
MIT, permissive license
  • Verified. Verified on arm64 with image tag 0.22.27. Our CI ran this exact image version and it answered on its health path. Evidence
  • Host ports. It publishes port 8090 on the host, so open them in the VPS firewall only if you want that.

Install Levelrail first

On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then PocketBase. New to Levelrail? Install it on a fresh VPS first.

docker pull ghcr.io/glincker/levelrail:latest

Then levelrail-cli login --device. See Getting started and the PocketBase docs page.

Deploy PocketBase your way

Every format below deploys the same pinned images. Pick the one that fits how you work.

Deploy PocketBase from the CLI

levelrail-cli templates deploy pocketbase --name my-pocketbase

Deploy PocketBase with the API

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/pocketbase/deploy

PocketBase configuration

PocketBase services

ServiceImagePortsVolumes
pocketbase ghcr.io/muchobien/pocketbase:0.22.27 8090 pocketbase_data -> /pb_data

PocketBase environment variables

The catalog lists no environment variables for this template.

Ports and volumes

Ports
8090
Volumes
1 named mount: pocketbase_data -> /pb_data

PocketBase FAQ

How much memory does PocketBase need?

The catalog lists about 128 MiB of memory for PocketBase.

Does PocketBase run on arm64?

For PocketBase, arm64 is tested; amd64 is image published.

What licence is PocketBase under?

PocketBase is licensed under MIT, which is permissive, with few conditions on reuse.

Does PocketBase need configuration before it starts?

No. The template fills in its own defaults.

Which ports does PocketBase use?

PocketBase listens on port 8090 inside the stack.

Where does PocketBase keep its data?

In a named volume: pocketbase_data mounted at /pb_data.

Can I deploy PocketBase on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id pocketbase for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image ghcr.io/muchobien/pocketbase:0.22.27 is what you deploy there.

levelrail-cli templates deploy pocketbase --name my-pocketbase