Pocketbase is an open-source backend for your next SaaS and mobile app, designed to be implemented with just one file.
To learn more about Pocketbase and how to use it, please refer to the Pocketbase Documentation.
You can explore a live demo of Pocketbase by visiting the Live Demo page.
To install Pocketbase, follow these steps:
- Clone this repository to your local machine.
- Navigate to the
dokku-pocketbase
directory:cd dokku-pocketbase
- Create a Dokku app on your server using the command:
dokku apps:create pocketbase
. - Ensure the creation of a persistent storage by running:
dokku storage:ensure-directory pocketbase
. - Mount the storage into the Pocketbase app using:
dokku storage:mount pocketbase /var/lib/dokku/data/storage/pocketbase:/app/pb_data
. - Set Pocketbase version using a enviroment Variable (Optional):
dokku config:set pocketbase POCKETBASE_VERSION=0.22.4
- Add the Dokku remote by executing:
git remote add dokku dokku@ipOrHosthere:pocketbase
. - Push the code to your Dokku remote using:
git push dokku main
. - You're done! Pocketbase should now be successfully installed on your server.
If you wish to use a different version of Pocketbase, you can do so by modifying the Dockerfile. Simply change the value of the POCKETBASE_VERSION
argument to your desired version or just set the POCKETBASE_VERSION enviroment variable on the dokku app.