Pocketbase docker image
  • Dockerfile 100%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-10-01 17:29:19 +03:00
.github build(deps): bump actions/github-script from 6 to 7 (#18) 2023-11-20 14:24:11 +01:00
.gitignore my 2024-05-28 09:17:14 +03:00
.woodpecker.yaml woodpecker-buildx-plugin 2024-10-01 17:29:19 +03:00
Dockerfile my 2024-05-28 09:17:14 +03:00
README.md coralhl 2024-05-28 09:42:17 +03:00

pocketbase logo

Docker image for PocketBase

Latest Pocketbase Version Supported docker archs


Supported Architectures

Simply pulling coralhl/pocketbase:latest should retrieve the correct image for your arch.

The architectures supported by this image are:

Architecture Available
amd64 ✅
arm64 ✅
armv7 ✅

Version Tags

This image provides various versions that are available via tags. Please read the descriptions carefully and exercise caution when using unstable or development tags.

Tag Available Description
latest ✅ Stable releases from PocketBase
x.x.x ✅ Patch release from PocketBase
x.x ✅ Minor release from PocketBase
x ✅ Major release from PocketBase

Application Setup

Access the webui at <your-ip>:8090, for more information check out PocketBase.

Usage

Here are some example snippets to help you get started creating a container.

version: "3.7"
services:
  pocketbase:
    image: coralhl/pocketbase:latest
    container_name: pocketbase
    restart: unless-stopped
    command:
      - --encryptionEnv #optional
      - ENCRYPTION #optional
    environment:
      ENCRYPTION: example #optional
    ports:
      - "8090:8090"
    volumes:
      - /path/to/data:/pb_data
      - /path/to/public:/pb_public #optional
      - /path/to/hooks:/pb_hooks #optional
    healthcheck: #optional (recommended) since v0.10.0
      test: wget --no-verbose --tries=1 --spider http://localhost:8090/api/health || exit 1
      interval: 5s
      timeout: 5s
      retries: 5

docker cli (click here for more info)

docker run -d \
  --name=pocketbase \
  -p 8090:8090 \
  -e ENCRYPTION=example `#optional` \
  -v /path/to/data:/pb_data \
  -v /path/to/public:/pb_public `#optional` \
  -v /path/to/hooks:/pb_hooks `#optional` \
  --restart unless-stopped \
  coralhl/pocketbase:latest \
  --encryptionEnv ENCRYPTION `#optional`

Built the image yourself

Copy Dockerfile and docker-compose.yml to the root directory, then update the docker-compose.yml file to build the image instead of pulling:

version: "3.7"
services:
  pocketbase:
    build:
      context: .
      args:
        - VERSION=0.22.10 # <--------- Set the Pocketbase version here. It will be downloaded from their GitHub repo
    container_name: pocketbase
    restart: unless-stopped
    command:
      - --encryptionEnv #optional
      - ENCRYPTION #optional
    environment:
      ENCRYPTION: example #optional
    ports:
      - "8090:8090"
    volumes:
      - /path/to/data:/pb_data
      - /path/to/public:/pb_public #optional
      - /path/to/hooks:/pb_hooks #optional
    healthcheck: #optional (recommended) since v0.10.0
      test: wget --no-verbose --tries=1 --spider http://localhost:8090/api/health || exit 1
      interval: 5s
      timeout: 5s
      retries: 5