BaaS & Databases512 MB RAM (Starter or Pro)· Port 8090

Deploy PocketBase with Docker Compose

Single-binary Go backend with embedded SQLite, real-time subscriptions, auth, and file storage.

1. Production docker-compose.yml Configuration

Copy this stack definition or deploy directly from your Vexlo Cloud console with automatic Let's Encrypt TLS and persistent volume mounts.

docker-compose.yml
yaml
services:
  pocketbase:
    image: ghcr.io/muchobien/pocketbase:latest
    restart: unless-stopped
    ports:
      - "8090:8090"
    environment:
      - PB_ENCRYPTION_KEY=${PB_ENCRYPTION_KEY:-32-char-secret-key}
      - TZ=${TZ:-Asia/Kolkata}
    volumes:
      - app_data:/pb_data


volumes:
  app_data:

2. Required Environment Variables

VariableDefault / ExampleDescription
PB_ENCRYPTION_KEY32-char-secret-keyOptional encryption key for PocketBase settings storage.
TZAsia/KolkataContainer timezone for migration and audit timestamps.

PocketBase Self-Hosting FAQs

How much RAM is required to self-host PocketBase in production?

PocketBase requires a minimum of 512 MB RAM (Starter or Pro). On Vexlo Cloud Pro (₹149/mo via UPI in India or $5/mo globally), you get 2 vCPU, 3 GB RAM, and 2 managed databases—more than enough headroom for production workloads.

How do I expose PocketBase with automatic HTTPS/SSL on Vexlo Cloud?

Deploy the ghcr.io/muchobien/pocketbase:latest container on Vexlo Cloud, set the exposed port to 8090, and attach your custom domain in the Domains tab. Vexlo automatically provisions and renews Let's Encrypt TLS certificates.

How is persistent data backed up for PocketBase?

Mount /pb_data to a persistent Docker volume and connect Vexlo Cloud's automated S3 / Cloudflare R2 backup scheduler to snapshot your database daily or weekly.

More 1-Click Docker Templates

View all 25 templates →