- This is not an official nor affiliated repository of PocketBase
- Images have
latestand PocketBase version tags (e.g.0.27.2) - GitHub: github.com/BakirGracic/pocketbase-docker
- Docker Hub: bakirg/pocketbase-docker
PocketBase is an open-source backend (or BaaS) built as a single Go binary that provides:
- Embedded SQLite Database with real-time subscriptions
- Authentication and User Management
- File Storage and Static File Serving
- Admin Dashboard for easy management
- REST-ish API server for integrations
- Extendable using Go or JavaScript
- and much more
- Lean & Secure: Optimized using lightweight Alpine images and operation layering
- Data Persistence: Configurable volumes for
pb_data,pb_public,pb_migrationsandpb_hookspersistance - Health Checks: Built‑in support for Docker health checks
- Unofficial: Not opinionated, welcoming contributions
- Configurable: Ability to configure some parameters
- Docker Engine (v20.10+)
- Docker Compose (if using compose)
- Before starting PocketBase service, default superuser is created (in case
pb_datadirectory doesn't exist) with[email protected]&Test123!!!credentials. Make sure to change credentials later!
git clone https://github.com/BakirGracic/pocketbase-docker
cd pocketbase-docker
docker build -t pocketbase:test_build .docker run -d \
--name pocketbase \
-p 8090:8090 \
-v ~/pb/data:/app/pb_data \
-v ~/pb/migrations:/app/pb_migrations \
-v ~/pb/hooks:/app/pb_hooks \
-v ~/pb/public:/app/pb_public \
docker.io/bakirg/pocketbase-docker:latestservices:
pocketbase_service:
image: docker.io/bakirg/pocketbase-docker:latest
container_name: pocketbase_container
restart: unless-stopped
ports:
- "8090:8090"
volumes:
- "~/pb/data:/app/pb_data"
- "~/pb/migrations:/app/pb_migrations"
- "~/pb/hooks:/app/pb_hooks"
- "~/pb/public:/app/pb_public"
healthcheck:
test: wget -q --spider http://localhost:8090/api/health || exit 1
interval: 30s
timeout: 5s
retries: 3
start_period: 5s- Admin UI: http://localhost:8090/_/
- API Endpoint: http://localhost:8090/api/
- Health Check http://localhost:8090/api/health
I welcome contributions to improve the Docker images and configurations. Please open issues or pull requests on GitHub.
This project is licensed under the MIT License.
For any (adequate) inquiries, please contact [email protected].
