vicknesh/pocketbase
BaaS using SQLite
111
Description
Custom pocketbase docker image.
The Dockerfile
to build this image can be located at http://github.com/svicknesh/pocketbase-docker
Overview
Pocketbase is an open source backend consisting of embedded database (SQLite) with realtime subscriptions, built-in auth management, convenient dashboard UI and simple REST-ish API.
This docker image follows the release of the official pocketbase
binary. This container is expected to be behind a reverse proxy with TLS, hence this docker only exposes the HTTP port.
Below is an example docker-compose.yaml
for starting this docker image locally
services:
pocketbase:
image: vicknesh/pocketbase:latest
container_name: pocketbase
restart: unless-stopped
environment:
TZ: Asia/Kuala_Lumpur
POCKETBASE_ENCRYPTION: icoKBoF0lOliRQo3RoJVmcE841mwpcaR # generate random 32 character string using `LC_ALL=C < /dev/urandom tr -dc A-Za-z0-9 | head -c32`
volumes:
- ./data:/exia/pocketbase
- ./hooks:/exia/pocketbase_hooks
- ./public:/exia/pocketbase_public
- /etc/ca-certificates/extracted/cadir:/etc/ssl/certs:ro # for ArchLinux
- /usr/share/ca-certificates/mozilla:/etc/ssl/certs:ro # for Ubuntu
ports:
- 0.0.0.0:8080:8080/tcp
Customizing startup
The default PUID
and PGID
of the user is 1000
, to change it, just set the appropriate environment variables with the preferred user and group id.
docker pull vicknesh/pocketbase