Sign inSign up

nxtgencat/pocketbase

By nxtgencat

Updated 3 days ago

PocketBase Docker image by nxtgencat. Supports multiple architectures. Easy deployment with Docker.

Image
Databases & storage
1

7.0K

nxtgencat/pocketbase repository overview

PocketBase Docker

PocketBase logo

Latest PocketBase Version Docker Architectures Docker Pulls

Overview

This Docker image provides a lightweight, ready-to-use PocketBase instance that works across multiple architectures. PocketBase is an open source backend consisting of embedded database (SQLite) with realtime subscriptions, built-in auth management, convenient dashboard UI and simple REST-ish API.

Features

  • Multi-architecture support: amd64, arm64, and armv7
  • Small footprint: Optimized image size for faster deployments
  • Easy configuration: Simple setup with environment variables
  • Volume mounting: Persistent data and custom configurations
  • Health checks: Built-in container health monitoring

Quick Start

docker run -d \
  --name pocketbase-app \
  --restart unless-stopped \
  -p 8090:8090 \
  -e PB_SUPERUSER_EMAIL="[email protected]" \
  -e PB_SUPERUSER_PASSWORD="Password123!" \
  -e PB_ENCRYPTION_KEY="a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6" \
  -v pocketbase-app:/pocketbase \
  --health-cmd="curl -f http://localhost:8090/api/health" \
  --health-interval=30s \
  --health-timeout=10s \
  --health-retries=3 \
  nxtgencat/pocketbase:latest

Access the admin UI at http://localhost:8090/_/ after running.

Tag Versioning

Tag StructureDescriptionExample
latestLatest stable releasenxtgencat/pocketbase:latest
x.y.zSpecific patch versionnxtgencat/pocketbase:0.16.3
services:
  pocketbase:
    image: nxtgencat/pocketbase:latest
    container_name: pocketbase-app
    restart: unless-stopped
    ports:
      - "8090:8090"
    environment:
      - PB_SUPERUSER_EMAIL="[email protected]"
      - PB_SUPERUSER_PASSWORD="Password123!"
      - PB_ENCRYPTION_KEY="a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6"
    volumes:
      - pocketbase-app:/pocketbase
    healthcheck:
      test: [ "CMD", "curl", "-f", "http://localhost:8090/api/health" ]
      interval: 30s
      timeout: 10s
      retries: 3
    
volumes:
  pocketbase-app: {}

Environment Variables

VariableDescriptionRequired
PB_SUPERUSER_EMAILAdmin dashboard login emailNo
PB_SUPERUSER_PASSWORDAdmin dashboard login passwordNo
PB_ENCRYPTION_KEYEncryption key (must be 32 chars)No

Volumes

PathPurpose
/pb_dataDatabase files and file storage
/pb_publicPublic assets and files
/pb_hooksJavaScript hooks for custom logic
/pb_migrationsDatabase migration files

Custom Configuration

For advanced configuration, create a pocketbase.json file and mount it to /pb_data/pocketbase.json.

Health Checks

The container includes a built-in health check endpoint at /api/health that returns HTTP 200 when PocketBase is running properly.

Resources

License

This Docker image is distributed under the same license as PocketBase. See PocketBase's license for details.

Tag summary

Content type

Image

Digest

sha256:7795984a1

Size

18.3 MB

Last updated

3 days ago

docker pull nxtgencat/pocketbase