Sign inSign up

azatecas/pocketbase

By azatecas

Updated 4 months ago

A dockerized version of Pocketbase

Image
Content management system
Databases & storage
1

4.1K

azatecas/pocketbase repository overview

Dockerized Pocketbase

Unoffical Pocketbase Docker Container

Support the original project: https://github.com/pocketbase/pocketbase

Repo that builds this container image https://github.com/CodeFallacy/pocketbase-docker

This Repo sets up the Github Actions to build and deploy to Dockerhub the azatecas/pocketbase multiarch image. It does not build pocketbase from scratch, but rather pull the official release from the original Pocketbase Repo and containarize it.

Current Pocketbase container architecture supported by this repo:

  • amd64
  • arm64
  • armv7

This image is being used in production, so we will do our best to build after each new Pocketbase release, although it may take a few days after each official release and there may be additional time limitations since we are using the free tier of github actions which have usage limits :)

Suggested docker-compose.yml configuration

services:
  pocketbase:
    container_name: pocketbase
    image: azatecas/pocketbase
    restart: unless-stopped
    command:
      - --encryptionEnv
      - ENCRYPTION
    environment:
      ENCRYPTION: ${ENCRYPTION} # optional (Ensure this is a 32-character long encryption key https://pocketbase.io/docs/going-to-production/#enable-settings-encryption)
    ports:
      - "127.0.0.1:8080:8080"
    volumes:
      - ${COMMON_PATH}/pb_data:/pb/pb_data
      - ${COMMON_PATH}/pb_public:/pb/pb_public # optional
      - ${COMMON_PATH}/pb_hooks:/pb/pb_hooks # optional
    healthcheck: # optional, recommended since v0.10.0
      test: wget --no-verbose --tries=1 --spider http://localhost:8080/api/health || exit 1
      interval: 60s
      timeout: 5s
      retries: 5

ENCRYPTION - OPTIONAL is used to encrypt settings in the current pocketbase instance. COMMON_PATH - refers to the root of the project.

for more read the offical Pocketbase documentation: https://pocketbase.io/docs

Tag summary

Content type

Image

Digest

sha256:b3cb1ffad

Size

20.8 MB

Last updated

4 months ago

docker pull azatecas/pocketbase