chore(compose): bump self-host Postgres to 18 (BUNYIP-350) #353
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/BUNYIP-350-postgres-18"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Aligns the bunyip repo self-host
compose.ymlPostgres to 18, matching the deployed infra template (template/bunyip-api/compose.ymlalready pinspostgres:18.2-alpine3.23on co1/nco1). This was the last Postgres 16 pin.Change
postgresservice image:postgres:16-alpine->postgres:18.2-alpine3.23./var/lib/postgresql/data->/var/lib/postgresql(whole tree). Postgres >= 18 defaultsPGDATAto/var/lib/postgresql/<MAJOR>/docker, so the volume must cover the parent to persist across the layout change. Mirrors the template.Fresh self-host volume: no-op. Existing 16 volume: needs
pg_upgradeor dump/restore (out of scope).Verification
Stood up
postgres:18.2-alpine3.23and applied all 75 bunyip-api migrations withON_ERROR_STOP=1: all applied clean, 41 public tables created,pg_isreadyhealthy in 3s. App startup + migrations on PG18 are additionally proven by the live co1/nco1 deployment already running this exact stack.Out of scope (flagged separately)
compose.dev.yml(thejust devlocal stack) is still onpostgres:16-alpinewith/var/lib/postgresql/data. The issue scopes tocompose.yml, so this PR leaves it. Bumping dev for parity is a small follow-up but touches existing local dev volumes, so it is left as a separate decision.AC
compose.ymlPostgres pinned to 18 (18.2-alpine3.23), matching the template./var/lib/postgresql).pg_isready+select version()= PostgreSQL 18.2).#BUNYIP-350