Commit Graph
8 Commits
Author SHA1 Message Date
notplants 77f4a7350b chore: publish 1.1.0+2026.7.1 release
continuous-integration/drone/tag Build was killed
2026-08-10 16:38:18 -04:00
notplantsandnotplants 1f77af93bd feat(db): switch to discourse/postgres image (auto-upgrade)
cc-ci/testme cc-ci: failure
Move the db off the bitnami-era pgvector:pg17 + hand-rolled pg_upgrade entrypoint
to discourse/postgres:pg18 (pgvector + discourse's auto-upgrade layer). The image
runs the in-place major-version pg_upgrade itself on boot; the recipe configures it
via env:

- a small inline entrypoint injects the db password secret into $DB_PASSWORD (the
  image expects it in the env, no *_FILE support)
- POSTGRES_USER (the install user pg_upgrade must match) defaults to 'postgres' --
  correct for fresh installs and bitnami-origin clusters -- overridable from .env
- POSTGRES_INITDB_ARGS=--no-data-checksums so the new pg18 cluster matches pre-18
  clusters (pg18 initdb enables checksums by default; pg_upgrade needs a match)

- mount postgresql_data at /var/lib/postgresql (versioned PGDATA .../18/docker)
- pg_backup.sh uses POSTGRES_USER for the dump/drop/recreate; fix paths
- document the POSTGRES_USER override in .env.sample, README and the release note
- drop entrypoint.postgres.sh.tmpl

Tested on cctest: pg17->pg18 upgrade preserves data and serves over HTTPS; fresh
install works; backup+restore round-trips.
2026-06-22 19:57:54 +00:00
notplants f87c612d71 chore: publish 0.8.1+3.5.0 release 2026-06-16 14:46:48 -04:00
notplantsandnotplants a9f08eed28 fix(db): make pg_upgrade 13->17 idempotent and use the cluster's real install user 2026-06-16 18:29:24 +00:00
notplantsandnotplants b0f9ae743a fix(db): switch postgres image to pgvector/pgvector:pg17 + bump PG_BACKUP_VERSION
cc-ci/testme cc-ci: success
2026-06-02 20:07:06 +00:00
notplantsandnotplants 5091fd999e improved comments
cc-ci/testme cc-ci: failure
2026-06-02 19:10:27 +00:00
notplantsandnotplants ec7bbdf786 fix(backup): add pg_backup.sh + proper backup/restore hooks, 20m start_period 2026-06-02 19:10:27 +00:00
notplantsandnotplants 0f873433ba chore: upgrade to 0.8.0+3.5.0 2026-06-02 19:10:27 +00:00