Sign inSign up

weiw11/pocketbase

By weiw11

Updated 5 days ago

Automated hourly Pocketbase build to ensure latest updates. Supports linux/amd64 and linux/arm64.

Image
Developer tools
Databases & storage
0

5.5K

weiw11/pocketbase repository overview

Pocketbase

Automated build of Pocketbase using official Dockerfile from documentation.

Build checks official GitHub repo hourly for new releases.

For additional information, please see official GitHub repository.

Warning

Please keep in mind that PocketBase is still under active development and therefore full backward compatibility is not guaranteed before reaching v1.0.0.

Using a pinned version is recommended instead of latest. Ex: 0.36.7

Quick Start

docker run -d -p 8080:8080 -v ./pb_data:/pb/pb_data weiw11/pocketbase:latest

Docker Compose

Quick Compose
services:
  pocketbase:
    image: weiw11/pocketbase:latest
    ports:
      - "8080:8080"
    volumes:
      - ./pb_data:/pb/pb_data
      - ./pb_migrations:/pb/pb_migrations
      - ./pb_hooks:/pb/pb_hooks
      - ./pb_public:/pb/pb_public
Automatic Superuser Creation Compose

Below compose will automatically create a default superuser on startup.

Note: superuser upsert command creates a new superuser if email does not exist. Otherwise it'll update the existing superuser record with the supplied email in .env file.

This essentially makes updating superuser password in the UI useless as on startup, it will be replaced by the password defined in .env file again.

services:
  pocketbase:
    image: weiw11/pocketbase:latest
    ports:
      - "8080:8080"
    volumes:
      - ./pb_data:/pb/pb_data
      - ./pb_migrations:/pb/pb_migrations
      - ./pb_hooks:/pb/pb_hooks
      - ./pb_public:/pb/pb_public

    command: >
      sh -c "
      /pb/pocketbase superuser upsert
      '${SUPER_USER}'
      '${SUPER_PASSWORD}'
      --dir=/pb/pb_data;
      /pb/pocketbase serve
      --http=0.0.0.0:8080
      --dir=/pb/pb_data
      --migrationsDir=/pb/pb_migrations
      --hooksDir=/pb/pb_hooks
      --publicDir=/pb/pb_public
      "
# .env File
[email protected]
SUPER_PASSWORD=super_fancy_pass

Tag summary

Content type

Image

Digest

sha256:7ed501e6d

Size

28 MB

Last updated

5 days ago

docker pull weiw11/pocketbase