Automated hourly Pocketbase build to ensure latest updates. Supports linux/amd64 and linux/arm64.
5.5K
Automated build of Pocketbase using official Dockerfile from documentation.
Build checks official GitHub repo hourly for new releases.
For additional information, please see official GitHub repository.
Warning
Please keep in mind that PocketBase is still under active development and therefore full backward compatibility is not guaranteed before reaching v1.0.0.Using a pinned version is recommended instead of
latest. Ex:0.36.7
docker run -d -p 8080:8080 -v ./pb_data:/pb/pb_data weiw11/pocketbase:latest
services:
pocketbase:
image: weiw11/pocketbase:latest
ports:
- "8080:8080"
volumes:
- ./pb_data:/pb/pb_data
- ./pb_migrations:/pb/pb_migrations
- ./pb_hooks:/pb/pb_hooks
- ./pb_public:/pb/pb_public
Below compose will automatically create a default superuser on startup.
Note:
superuser upsertcommand creates a new superuser if email does not exist. Otherwise it'll update the existing superuser record with the supplied email in.envfile.This essentially makes updating superuser password in the UI useless as on startup, it will be replaced by the password defined in
.envfile again.
services:
pocketbase:
image: weiw11/pocketbase:latest
ports:
- "8080:8080"
volumes:
- ./pb_data:/pb/pb_data
- ./pb_migrations:/pb/pb_migrations
- ./pb_hooks:/pb/pb_hooks
- ./pb_public:/pb/pb_public
command: >
sh -c "
/pb/pocketbase superuser upsert
'${SUPER_USER}'
'${SUPER_PASSWORD}'
--dir=/pb/pb_data;
/pb/pocketbase serve
--http=0.0.0.0:8080
--dir=/pb/pb_data
--migrationsDir=/pb/pb_migrations
--hooksDir=/pb/pb_hooks
--publicDir=/pb/pb_public
"
# .env File
[email protected]
SUPER_PASSWORD=super_fancy_pass
Content type
Image
Digest
sha256:7ed501e6d…
Size
28 MB
Last updated
5 days ago
docker pull weiw11/pocketbase