allow custom pocketbase login data

This commit is contained in:
2025-04-02 10:46:20 +02:00
parent f797a143e5
commit a35d38c886
2 changed files with 8 additions and 0 deletions

View File

@@ -9,6 +9,11 @@ services:
volumes:
- ./pb/data:/pb/pb_data
restart: no
environment:
# These are only needed at first start. These are the values used to login to the admin panel.
# If left empty the email will be set to test@example.com and the password to 1234567890
#- EMAIL=
#- PASSWORD=
bot:
depends_on:
pocketbase:

View File

@@ -5,6 +5,9 @@ migrate(app => {
let record = new Record(superusers)
const email = process.env.EMAIL ?? 'text@example.com'
const password = process.env.PASSWORD ?? '1234567890'
// This should be communicated to the user, or be set by the user.
record.set("email", "test@example.com")
record.set("password", "1234567890")