Pulling spectado/pocketbase:latest
will retrieve the correct image for your arch.
Access the webui at <your-ip>:80
, for more information check out PocketBase.
There are multiple configuration & files directories that are mounted into the container. These folders are mapped to the root inside container.
pb_data holds your application config and data and should be mapped to your local file system to persist them!
pb_public is optional, and is only used for serving static files. (supported in this docker image since version 0.20.7)
pb_migrations is optional, this directory allows you to version your DB structure. See https://pocketbase.io/docs/js-migrations/. (supported in this docker image since version 0.20.8)
volumes:
- /path/to/data:/pb_data
- /path/to/public:/pb_public
- /path/to/migrations:/pb_migrations
This docker image is a build of pocketbase.io - Open Source backend for your next SaaS and Mobile app in 1 file
- Realtime database
- Authentication
- File storage
- Admin dashboard
docker-compose
version: "3.7"
services:
pocketbase:
image: spectado/pocketbase:latest
container_name: pocketbase
restart: unless-stopped
ports:
- "80:80"
volumes:
- /path/to/data:/pb_data
- /path/to/public:/pb_public
- /path/to/migrations:/pb_migrations