From 9f617747370168f74e9b10b99ea6727777f2afbf Mon Sep 17 00:00:00 2001 From: notplants <@notplants> Date: Tue, 2 Jun 2026 20:05:44 +0000 Subject: [PATCH] fix(db): switch postgres image to pgvector/pgvector:pg17 + bump PG_BACKUP_VERSION MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Switch db image from postgres:16 to pgvector/pgvector:pg17. The bundled discourse-ai plugin's migration 20230710171141 runs 'CREATE EXTENSION IF NOT EXISTS vector' on every boot; without the extension binaries installed in the postgres image, the migration transaction is aborted and the app crash-loops. The pgvector image is debian-based (bookworm) with the postgres apt repo + pgdg.list already configured, so the recipe's homegrown pg_upgrade entrypoint continues to work across major version bumps. - Bump PG_BACKUP_VERSION v1 → v2: the prior 'improved comments' commit edited pg_backup.sh content without bumping the config version, so any operator redeploying without a fresh stack would hit 'only updates to Labels are allowed' from docker swarm (configs are immutable; content change needs a new name). --- abra.sh | 2 +- compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/abra.sh b/abra.sh index def0c38..8cac4ed 100644 --- a/abra.sh +++ b/abra.sh @@ -1,2 +1,2 @@ export DB_ENTRYPOINT_VERSION=v1 -export PG_BACKUP_VERSION=v1 +export PG_BACKUP_VERSION=v2 diff --git a/compose.yml b/compose.yml index b2e7473..c258e1b 100644 --- a/compose.yml +++ b/compose.yml @@ -52,7 +52,7 @@ services: start_period: 20m db: - image: postgres:16 + image: pgvector/pgvector:pg17 networks: - internal secrets: