Skip to content

chore(compose): postgres 17 to match quickstart-openshift - #520

Merged
DerekRoberts merged 1 commit into
mainfrom
chore/compose-postgres-17
Oct 10, 2026
Merged

DerekRoberts merged 1 commit into
mainfrom
chore/compose-postgres-17

Conversation

@DerekRoberts

@DerekRoberts DerekRoberts commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

Local development runs PostgreSQL 15 in docker-compose.yml, while the deployed database runs 17 (PG_VERSION in common/openshift.database.yml), so local dev doesn't match what ships.

Change

  • docker-compose.yml: postgres:15 → postgres:17, matching the deployed PG_VERSION and bcgov/quickstart-openshift.

Why Renovate didn't propose it

bcgov/renovate-config (2026.9.26) disables major updates for database images (postgres, mysql, mariadb, mongo, mongodb, redis) because they need a data migration. The Dependency Dashboard (#53) detects postgres 15 with update 18 available but will not open a PR for it.

Local volumes

This only affects local development; no deployed data changes. PostgreSQL 17 can't read a data directory created by 15, so anyone with an existing local database volume needs to run docker compose down -v once before docker compose up.

Verification

No CI job starts the compose stack. postgres:17 starts locally with this file's settings and answers pg_isready.

Copilot AI balanced review requested due to automatic review settings October 10, 2026 18:23
@DerekRoberts DerekRoberts self-assigned this Oct 10, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The version now matches the deployment configuration, and the local volume migration requirement is documented.

0 open findings

What changed in this PR

Aligns local development with the deployed PostgreSQL 17 environment.

Changes:

  • Updates the Compose database image from PostgreSQL 15 to 17.
File Description
docker-compose.yml Uses PostgreSQL 17 for local development.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@DerekRoberts DerekRoberts moved this to Active in DevOps (NR) Oct 10, 2026
@DerekRoberts
DerekRoberts merged commit 0759b8f into main Oct 10, 2026
21 checks passed
@DerekRoberts
DerekRoberts deleted the chore/compose-postgres-17 branch October 10, 2026 19:58
@github-project-automation github-project-automation Bot moved this from Active to Done in DevOps (NR) Oct 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants