Pocketbase is a powerful, open-source backend designed for SaaS and mobile applications, all implemented with a single file.
For comprehensive Pocketbase usage and implementation details, visit the Pocketbase Documentation.
Experience the capabilities of Pocketbase through the Live Demo.
To install Pocketbase on a Dokku server, follow these detailed steps:
- Clone the Repository: Download the repository onto your local machine.
git clone https://github.com/your-repo/dokku-pocketbase.git
- Navigate to Directory: Change to the
dokku-pocketbase
directory.cd dokku-pocketbase
- Create a Dokku App: Set up a new Dokku app named
pocketbase
on your server.dokku apps:create pocketbase
- Ensure Persistent Storage: Create a directory for persistent storage.
dokku storage:ensure-directory pocketbase
- Mount Storage: Attach the persistent storage to your Pocketbase app.
dokku storage:mount pocketbase /var/lib/dokku/data/storage/pocketbase:/app/pb_data
- Set Pocketbase Version: (Optional) Specify the Pocketbase version.
dokku config:set pocketbase POCKETBASE_VERSION=0.22.4
- Add Dokku Remote: Link your local repository to the Dokku remote.
git remote add dokku dokku@<YOUR_SERVER_IP>:pocketbase
- Deploy Pocketbase: Push your application to the Dokku server.
git push dokku main
Pocketbase will now be operational on your server.
To select a different Pocketbase version, modify the Dockerfile or set the POCKETBASE_VERSION
environment variable in your Dokku app.
Upgrade your Pocketbase instance to a new version with these commands:
- Add Docker build argument:
dokku docker-options:add pocketbase build '--build-arg POCKETBASE_VERSION=0.22.22'
- Rebuild your app:
dokku ps:rebuild pocketbase
From version 0.16+, Pocketbase includes built-in backup and restore APIs accessible via the Admin UI (Settings > Backups).
Enhance Pocketbase by writing custom business logic in Go or JavaScript. Use the pb_hooks
directory to create a portable backend. Learn more in the Pocketbase as a Framework guide.
Consult the Pocketbase Documentation or open an issue on our GitHub repository for any installation or usage problems.
Seeking a custom web application or a bespoke solution for your business? The BlockShift team can assist with:
- Custom Laravel/PHP application development
- Vue.js or JavaScript solutions for web and mobile applications
- Expert consulting services for existing applications
Ready to start your project? Visit blockshift.us and discover more about our services.
We welcome contributions! For details on how to get started, review our Contributing Guide.
This project is licensed under the MIT License. View the LICENSE file for more details.