Add PocketBase schema migrations and migration pipeline
- 8 collections: vereine, gruppen, mitglieder, beitraege, einzuege, termine, nachrichten, push_subscriptions - verein_id relation added to users (multi-tenant isolation) - API rules enforce tenant separation via @request.auth.verein_id - docker-compose: --migrationsDir=/pb_data/migrations flag + volume mount - Makefile: migrations sync step added to deploy target
This commit is contained in:
parent
94ca36f470
commit
375a3305bb
11 changed files with 931 additions and 2 deletions
|
|
@ -5,10 +5,12 @@ services:
|
|||
image: ghcr.io/muchobien/pocketbase:latest
|
||||
container_name: vereinshaus-pocketbase
|
||||
restart: unless-stopped
|
||||
command: ["--migrationsDir=/pb_data/migrations"]
|
||||
volumes:
|
||||
- /volume1/docker/vereinshaus/pocketbase/data:/pb_data
|
||||
- /volume1/docker/vereinshaus/pocketbase/storage:/pb_public
|
||||
- /volume1/docker/vereinshaus/pocketbase/data/pb_hooks:/pb_hooks
|
||||
- /volume1/docker/vereinshaus/pocketbase/migrations:/pb_data/migrations
|
||||
environment:
|
||||
- TZ=Europe/Berlin
|
||||
- BREVO_KEY=${BREVO_KEY}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue