Run docwell-db as a stock PocketBase and let the server set it up
CI / go (Server) (push) Failing after 22m50s
CI / go (Web-App) (push) Canceled after 0s
CI / frontend (push) Failing after 8m47s
CI / desktop (ubuntu-latest) (push) Successful in 2h56m50s
CI / mobile (push) Failing after 5m33s
CI / docker (push) Successful in 1h43m8s
Docs / build (push) Successful in 16m2s
Docs / deploy (push) Skipped
CI / desktop (macos-latest) (push) Canceled after 0s
CI / desktop (windows-latest) (push) Canceled after 0s
CI / go (Server) (push) Failing after 22m50s
CI / go (Web-App) (push) Canceled after 0s
CI / frontend (push) Failing after 8m47s
CI / desktop (ubuntu-latest) (push) Successful in 2h56m50s
CI / mobile (push) Failing after 5m33s
CI / docker (push) Successful in 1h43m8s
Docs / build (push) Successful in 16m2s
Docs / deploy (push) Skipped
CI / desktop (macos-latest) (push) Canceled after 0s
CI / desktop (windows-latest) (push) Canceled after 0s
docwell-db no longer needs a Docwell image: the stack runs tajniak81/pocketbase-docker-root as it is, and docwell-server does what the migrations and pb_hooks used to do inside PocketBase. On start, docwell-server now: - waits for PocketBase and imports Docwell's collections from an embedded snapshot (internal/pbschema). Existing collections and fields are matched by name, so their data is kept; the admin-managed users options (OAuth2 providers, magic link) are left untouched. - writes the DOCWELL_APP_NAME, DOCWELL_WEB_URL, DOCWELL_MAIL_FROM, DOCWELL_SMTP_* and DOCWELL_S3_* settings into PocketBase, as the boot hook did. It also replaces the hook's two routes: token checks use PocketBase's auth-refresh (the organization name is read as the superuser), and Docwell's own emails go out over SMTP from the server. PocketBase never returns the SMTP password, so the server keeps a copy in the superuser-only instance_settings collection; a password saved before this change has to be entered once more in the admin panel. Database/ keeps pb_migrations as the source of the schema; export-schema.sh regenerates the snapshot from them. Database/Dockerfile and pb_hooks are removed, the release no longer builds docwell-db, the AIO image runs PocketBase without migrations or hooks, and the compose files default DB_IMAGE to the stock image and pass the settings to the server instead of the database. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
24a2d275a0
commit
b9be8be156
43 files changed
+5265
-372
No files matched your search
@@ -1,7 +1,6 @@
|
||||
# Publishes a release on Gitea: push a tag like v1.0.0.
|
||||
# Images go to the registry of the Gitea that runs this workflow,
|
||||
# <host>/<repository owner>/<name>, for linux/amd64 and linux/arm64 (docwell-db:
|
||||
# amd64 only, like its PocketBase base image), tagged
|
||||
# <host>/<repository owner>/<name>, for linux/amd64 and linux/arm64, tagged
|
||||
# with the version (1.0.0, 1.0) and latest. Desktop installers (Windows NSIS,
|
||||
# Linux deb, rpm and AppImage) are attached to the Gitea release for the tag,
|
||||
# which is made once every build has passed. Gitea has no hosted Mac runners,
|
||||
@@ -42,12 +41,9 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
# FROM tajniak81/pocketbase-docker-root, published for amd64
|
||||
# only. Add linux/arm64 back once that image has it.
|
||||
- name: docwell-db
|
||||
context: Database
|
||||
dockerfile: Database/Dockerfile
|
||||
platforms: linux/amd64
|
||||
# No docwell-db image: the stack runs a stock PocketBase
|
||||
# (tajniak81/pocketbase-docker-root) and docwell-server applies
|
||||
# Docwell's schema to it.
|
||||
- name: docwell-server
|
||||
context: .
|
||||
dockerfile: Server/Dockerfile
|
||||
|
||||
Reference in new issue
Block a user