Auto-seed dev PocketBase and share its schema with the tests

This commit is contained in:
tleininger committed 2026-09-23 15:59:15 +02:00
1 parent d5372963bb
commit c3da5eb6e1
6 files changed
+537 -65

No files matched your search

+8
View File
@@ -18,6 +18,14 @@ services:
# lets Docker pick a random free one; the tests read it back with `compose port`.
ports: !override
- "8090"
# Drop the dev overlay's pb_migrations bind mount. The tests must NOT run the
# dev seed -- it would insert the dev data set, which the tests do not assert
# against (and which lacks the fixtures' draft page, known event time, etc.).
# The fixture creates the collections itself by importing the shared schema
# file, then seeds its own fixed records. !override replaces the inherited
# volumes list; the throwaway pb_data volume is re-declared so it survives.
volumes: !override
- pb_data_dev:/pb_data
eb-web:
container_name: !reset null # see eb-pocketbase above (eb-web is not started in tests)