PocketBase Docker image by nxtgencat. Supports multiple architectures. Easy deployment with Docker.
7.0K
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.
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 Structure | Description | Example |
|---|---|---|
latest | Latest stable release | nxtgencat/pocketbase:latest |
x.y.z | Specific patch version | nxtgencat/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: {}
| Variable | Description | Required |
|---|---|---|
PB_SUPERUSER_EMAIL | Admin dashboard login email | No |
PB_SUPERUSER_PASSWORD | Admin dashboard login password | No |
PB_ENCRYPTION_KEY | Encryption key (must be 32 chars) | No |
| Path | Purpose |
|---|---|
/pb_data | Database files and file storage |
/pb_public | Public assets and files |
/pb_hooks | JavaScript hooks for custom logic |
/pb_migrations | Database migration files |
For advanced configuration, create a pocketbase.json file and mount it to /pb_data/pocketbase.json.
The container includes a built-in health check endpoint at /api/health that returns HTTP 200 when PocketBase is running properly.
This Docker image is distributed under the same license as PocketBase. See PocketBase's license for details.
Content type
Image
Digest
sha256:7795984a1…
Size
18.3 MB
Last updated
3 days ago
docker pull nxtgencat/pocketbase