Lightweight, multi-architecture PocketBase Docker image (amd64/arm64/armv7) based on Alpine Linux.
10K+
PocketBase is an open-source Go backend, consisting of an embedded database (SQLite) with real-time subscriptions, built-in auth management, a convenient admin dashboard UI, and a simple REST-ish API.
Note: This Docker image is built from a fork of the original repository to provide consistent builds and multi-architecture support.
linux/amd64, linux/arm64, and linux/arm/v7.Run the latest PocketBase container with a single command:
docker run -d \
--name pocketbase \
-p 8080:8080 \
-v ./pb_data:/pb_data \
# Replace with your Docker Hub username/repo if needed
smilingxinyi/pocketbase:latest
Access the admin UI at: http://localhost:8080/_/
For a more persistent and manageable setup, use the following docker-compose.yml:
services:
pocketbase:
image: smilingxinyi/pocketbase:latest
container_name: pocketbase
restart: unless-stopped
ports:
- "8080:8080"
volumes:
- ./pb_data:/pb_data
- ./pb_public:/pb_public # Optional: for static frontend files
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:8080/api/health"]
interval: 10s
timeout: 5s
retries: 3
PocketBase stores all data (SQLite database, settings, and uploaded files) in the /pb_data directory. Always mount this directory to a host volume to prevent data loss.
The default entrypoint runs ./pocketbase serve. You can pass additional flags:
# Example: Changing the internal port
docker run ... smilingxinyi/pocketbase:latest ./pocketbase serve --http="0.0.0.0:9090"
This image is built using Docker Buildx for broad compatibility:
| Architecture | Description |
|---|---|
linux/amd64 | Standard 64-bit PCs, Servers (Intel/AMD) |
linux/arm64 | Apple Silicon (M1/M2/M3), Raspberry Pi 4/5, AWS Graviton |
linux/arm/v7 | Older Raspberry Pi and ARM devices |
Content type
Image
Digest
sha256:51e66d41b…
Size
15.9 MB
Last updated
4 days ago
docker pull smilingxinyi/pocketbase