Pocketbase is a versatile mobile app that serves as a personal database, allowing users to organize and store various types of information such as notes, contacts, tasks, and more. It provides an intuitive interface for managing data on the go, making it easy to access and update important information from your smartphone or tablet. Whether for personal use or business needs, PocketBase offers a convenient way to stay organized and keep essential data at your fingertips.
With Hostinger's Ubuntu 24.04 with PocketBase VPS template, setting up PocketBase is streamlined, as it comes pre-installed. This guide will help you get started with PocketBase on your VPS.
Getting started with PocketBase
Open the web browser and navigate to http://[your-vps-ip]
on your web browser. There, you will see a login page:
For email, use the following — admin@[your-VPS-hostname]
(or copy the username from the VPS dashboard). For the password, use the one that you created in the initial setup. The password can also be reset via hPanel.
After logging in, you should see the following screen, from which you can start using the Pocketbase to your liking!
Managing Your PocketBase Instance
PocketBase runs as a standalone executable, making it easy to manage. If at any point you need to restart the PocketBase service, you can do so using:
systemctl restart pocketbase
To check the logs and ensure that PocketBase is functioning as expected, use:
journalctl -u pocketbase -f
If you need to stop the service, you can do so by running:
systemctl stop pocketbase
Configuring PocketBase
PocketBase stores its data in an SQLite database by default, making it easy to manage without additional database setup. However, you may need to configure additional options, such as enabling CORS for front-end applications or setting up authentication providers. These settings can be modified within the configuration files located in the PocketBase directory.
To modify configurations, navigate to the PocketBase directory:
cd /opt/pocketbase
You can edit the settings using a text editor like nano:
nano config.json
Once changes are made, restart PocketBase for them to take effect:
systemctl restart pocketbase
The "Ubuntu 24.04 with PocketBase" VPS template from Hostinger provides a fast and efficient way to deploy a lightweight backend for your applications. With built-in authentication, real-time database features, and file storage, PocketBase simplifies backend development while offering flexibility for customization. Following this guide lets you set up, manage, and secure your PocketBase installation effectively. For further details, refer to the official PocketBase documentation.