Just set of dockerfiles for pocketbase starting from 0.22 You can find hosted image on dockerhub
replace latest by any version you want
docker build -f dockerfiles/0.22-alpine3.20.dockerfile . -t your_namespace/pocketbase:latestdocker build -f dockerfiles/0.22-alpine3.20.dockerfile . --build-arg MIGRATIONS_DIR=./pb_migrations --build-arg HOOKS_DIR=./pb_hooks -t your_namespace/pocketbase:latest- MIGRATIONS_DIR pocketbase migration directory, see the doc
- HOOKS_DIR pocketbase hooks directory, see the doc
docker run -v ./pb_data:/pb/pb_data -p 8080:8080 -d your_namespace/pocketbase:latestdocker run -v ./pb_data:/pb/pb_data -v ./pb_hooks:/pb/pb_hooks -v ./pb_migrations:/pb/pb_migrations -p 8080:8080 -d your_namespace/pocketbase:latestdocker push your_namespace/pocketbase:0.22-alpine3.20