Sign inSign up

khieudv/pocketbase

By khieudv

โ€ขUpdated over 1 year ago

PocketBase with Encryption Support

Image
API management
Content management system
Databases & storage
1

264

khieudv/pocketbase repository overview

๐Ÿ“ฆ PocketBase with Encryption Support

This image provides a ready-to-use instance of PocketBaseโ  with optional encryption support for settings, making it production-ready.

โ ๐Ÿงพ Features
  • Built with the latest version of PocketBase
  • Supports encrypted settings using a 32-character encryption key via the ENCRYPTION environment variable
  • Auto-restarts if the container stops
  • Persistent volume mounts for data, public files, and custom hooks
  • Built-in healthcheck to monitor service status
โ ๐Ÿš€ Usage
version: "3.7"
services:
  pocketbase:
    image: khieudv/pocketbase:latest
    container_name: pocketbase
    restart: unless-stopped
    command:
      - --encryptionEnv
      - ENCRYPTION
    environment:
      ENCRYPTION: "1234567890abcdef1234567890abcdef" # must be exactly 32 characters
    ports:
      - "8090:8090"
    volumes:
      - ./pocketbase/data:/pb_data
      - ./pocketbase/public:/pb_public
      - ./pocketbase/hooks:/pb_hooks
    healthcheck:
      test: wget --no-verbose --tries=1 --spider http://localhost:8090/api/health || exit 1
      interval: 5s
      timeout: 5s
      retries: 5
โ ๐Ÿ“ Volume Mounts
Host PathPurpose
./pocketbase/dataStores the PocketBase database
./pocketbase/publicHosts static/public files
./pocketbase/hooksContains custom hook scripts
โ ๐Ÿ” Encryption Notice

Tag summary

Content type

Image

Digest

sha256:92542bce0โ€ฆ

Size

18.5 MB

Last updated

over 1 year ago

docker pull khieudv/pocketbase