Add env-driven SMTP and app identity settings for PocketBase

- pb_hooks/main.pb.js: bootstrap hook applying SMTP + meta settings from
  env vars on every boot (mail disabled when SMTP_HOST is unset)
- docker-compose.yml: expose SMTP_* / PB_APP_URL on the pocketbase service
- pocketbase/Dockerfile: bundle pb_hooks
- README: document the new variables
This commit is contained in:
2026-07-28 10:29:04 +02:00
parent 3d712b8c57
commit 2df1325a09
4 changed files with 62 additions and 0 deletions
+1
View File
@@ -12,6 +12,7 @@ RUN curl -fsSL "https://github.com/pocketbase/pocketbase/releases/download/v${PB
&& rm pb.zip
COPY pb_migrations ./pb_migrations
COPY pb_hooks ./pb_hooks
COPY entrypoint.sh ./
RUN chmod +x entrypoint.sh pocketbase