Commit Graph
6 Commits
Author SHA1 Message Date
notplants af76d06c2d feat(db): use pgautoupgrade image instead of pgvector + bespoke pg_upgrade
discourse core does not use the vector extension, so the pgvector image is
unnecessary. Switch db to pgautoupgrade/pgautoupgrade:17-trixie, which handles
major-version upgrades (old binaries, initdb, pg_upgrade) itself.

pgautoupgrade assumes the old cluster's install user (oid 10) equals
POSTGRES_USER and fails pg_upgrade otherwise (issue #115). A thin wrapper
entrypoint detects the old install user when an upgrade is pending and exports
POSTGRES_USER so pgautoupgrade matches it. Replaces the 64-line hand-rolled
pg_upgrade entrypoint.
2026-06-18 22:12:57 +00:00
notplants 0c4539b7ad feat(discourse): switch app to official discourse/discourse image (experimental)
cc-ci/testme cc-ci: success
Replaces the paywalled bitnamilegacy app with the official discourse/discourse
image behind Traefik. DB is reused as-is; uploads migrate from the legacy
bitnami volume idempotently. The wrapper entrypoint injects the db_password and
smtp_password secrets (the official image has no *_FILE support). SMTP env vars
are renamed to the official names; release notes cover the migration.

Recipe 0.8.1+3.5.0 -> 1.0.0+3.5.3 (major: new image, env/volume/port changes).
2026-06-18 21:59:34 +00: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 ec7bbdf786 fix(backup): add pg_backup.sh + proper backup/restore hooks, 20m start_period 2026-06-02 19:10:27 +00:00
3wordchant 6a5f20bc8a Add postgres major version upgrade script 2023-08-21 15:56:57 +02:00