Skip to content

Default username and password for admin pocket base docker #31

@dviramontes

Description

@dviramontes

Hi, would you be open to a contribution to pocketbase and therefore pocketbase-docker
that would allow a user to setup the default email and password for the container in the following way?

services:
  pocketbase:
    image: ghcr.io/muchobien/pocketbase:latest
    environment:
      - POCKETBASE_ADMIN_EMAIL=${POCKETBASE_ADMIN_EMAIL}
      - POCKETBASE_ADMIN_PASSWORD=${POCKETBASE_ADMIN_PASSWORD}

Much like in postgres container you can do

services:
  db:
    image: postgres:15
    environment:
      - POSTGRES_USER=${DB_USER}
      - POSTGRES_PASSWORD=${DB_PASSWORD}

which eases friction during local development. Lmk what you think and thanks for creating an amazing project 💯

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions