From ef9864fac4da2964f8e6cb2a00434b9f1f797a14 Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Mon, 23 Nov 2026 18:58:26 -0500 Subject: [PATCH] fix: stamp vectorchord-version=pkg on immich-postgres:18 Pass VECTORCHORD_VERSION=pkg for the 18-pkg variant so its image label reflects the FreeBSD postgresql18-vchord package instead of the PG 14 source-build fallback version. Keep :latest aliased to PG 14 so existing deployments do not break on pull, and clarify :18 docs for new installs. --- .daemonless/config.yaml | 1 + README.md | 19 +++++++++++++------ compose.yaml | 8 ++++---- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/.daemonless/config.yaml b/.daemonless/config.yaml index ff59857..2ee9378 100644 --- a/.daemonless/config.yaml +++ b/.daemonless/config.yaml @@ -20,6 +20,7 @@ build: pkg_name: postgresql18-server args: PG_VERSION: "18" + VECTORCHORD_VERSION: "pkg" aliases: ["18"] # Component of the daemonless/immich stack -- not a standalone catalog app. diff --git a/README.md b/README.md index 695c3eb..af90ea2 100644 --- a/README.md +++ b/README.md @@ -174,19 +174,26 @@ Save as `bastille-compose.yml`, then run `bastille up`. This image is part of the [Immich Stack](https://daemonless.io/images/immich). -**PostgreSQL version:** `:latest` and `:14` use PostgreSQL 14. `:18` uses PostgreSQL 18. -New installations should consider `:18`. If you are migrating an existing Immich instance, -stay on `:14` — PostgreSQL major version upgrades require a full `pg_dumpall` and restore. -The default `:latest` tag will follow whatever version Immich recommends upstream. +**PostgreSQL version:** `:18` uses PostgreSQL 18 with VectorChord and pgvector from +FreeBSD packages (recommended for new installs). `:latest` and `:14` remain on +PostgreSQL 14 so existing deployments never break on pull; upgrading an existing +PostgreSQL 14 database to 18 requires a full `pg_dumpall` and restore. -PostgreSQL requires `allow.sysvipc` for shared memory. Create `immich-postgres.conf` alongside `appjail-director.yml`: +PostgreSQL needs System V shared memory, which a jail does not get by default. +Create `immich-postgres.conf` alongside `appjail-director.yml`, the same as the +Immich stack's `immich-postgres-template.conf` (`allow.sysvipc` alone does nothing +on FreeBSD 15; the jail needs its own `sysv*: new` namespaces): ``` exec.start: "/bin/sh /etc/rc" exec.stop: "/bin/sh /etc/rc.shutdown jail" +sysvmsg: new +sysvsem: new +sysvshm: new mount.devfs persist -allow.sysvipc +ip4: inherit +ip6: inherit ``` diff --git a/compose.yaml b/compose.yaml index 83331a4..0484447 100644 --- a/compose.yaml +++ b/compose.yaml @@ -18,10 +18,10 @@ x-daemonless: notes: | This image is part of the [Immich Stack](https://daemonless.io/images/immich). - **PostgreSQL version:** `:latest` and `:14` use PostgreSQL 14. `:18` uses PostgreSQL 18. - New installations should consider `:18`. If you are migrating an existing Immich instance, - stay on `:14` — PostgreSQL major version upgrades require a full `pg_dumpall` and restore. - The default `:latest` tag will follow whatever version Immich recommends upstream. + **PostgreSQL version:** `:18` uses PostgreSQL 18 with VectorChord and pgvector from + FreeBSD packages (recommended for new installs). `:latest` and `:14` remain on + PostgreSQL 14 so existing deployments never break on pull; upgrading an existing + PostgreSQL 14 database to 18 requires a full `pg_dumpall` and restore. PostgreSQL needs System V shared memory, which a jail does not get by default. Create `immich-postgres.conf` alongside `appjail-director.yml`, the same as the