https://github.com/cotontigeh/pocketbase-docker
Pocketbase docker image
https://github.com/cotontigeh/pocketbase-docker
database docker docker-compose docker-image
Last synced: 3 months ago
JSON representation
Pocketbase docker image
- Host: GitHub
- URL: https://github.com/cotontigeh/pocketbase-docker
- Owner: cotontigeh
- Created: 2024-10-19T22:50:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-08T16:52:29.000Z (over 1 year ago)
- Last Synced: 2025-03-16T02:18:10.791Z (over 1 year ago)
- Topics: database, docker, docker-compose, docker-image
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/cotontigeh/pocketbase/tags
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pocketbase docker
Just set of dockerfiles for [pocketbase](https://github.com/pocketbase/pocketbase) starting from 0.22
You can find hosted image on [dockerhub](https://hub.docker.com/r/cotontigeh/pocketbase/tags)
# Dev commands
## Build image
replace `latest` by any version you want
```bash
docker build -f dockerfiles/0.22-alpine3.20.dockerfile . -t your_namespace/pocketbase:latest
```
### With args
```bash
docker 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](https://pocketbase.io/docs/going-to-production/#using-docker)
- **HOOKS_DIR** pocketbase hooks directory, see [the doc](https://pocketbase.io/docs/going-to-production/#using-docker)
## Start image
```bash
docker run -v ./pb_data:/pb/pb_data -p 8080:8080 -d your_namespace/pocketbase:latest
```
### Start image with shared volumes
```bash
docker 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:latest
```
## Publish to dockerhub
```bash
docker push your_namespace/pocketbase:0.22-alpine3.20
```