Skip to content

chore(deps): update postgres docker tag to v18#27

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/postgres-18.x
Open

chore(deps): update postgres docker tag to v18#27
renovate[bot] wants to merge 1 commit intomainfrom
renovate/postgres-18.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jan 14, 2026

This PR contains the following updates:

Package Update Change
postgres major 17.718.3

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

compose.yaml Outdated
Comment on lines 3 to 6
image: postgres:18.1
container_name: wiki-link-db
environment:
POSTGRES_USER: ${POSTGRES_USER:-wiki-link-user}
Copy link

Choose a reason for hiding this comment

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

Bug: Upgrading PostgreSQL to version 18 changes the default data directory. The docker-compose.yml volume mount still uses the old path, which will cause the database container to fail on startup.
Severity: CRITICAL

Suggested Fix

To ensure backward compatibility with existing data volumes, explicitly set the PGDATA environment variable for the PostgreSQL service in docker-compose.yml to the old path: PGDATA: /var/lib/postgresql/data. This forces the new PostgreSQL version to use the existing data directory, preventing a startup failure.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: docker-compose.yml#L3-L6

Potential issue: The pull request upgrades PostgreSQL from version 17.5 to 18.1. This
major version upgrade changes the default `PGDATA` directory from
`/var/lib/postgresql/data` to a new version-specific path. The `docker-compose.yml` file
continues to mount the persistent volume `wiki-link-data` to the old path. According to
official PostgreSQL Docker documentation, when the new version starts and finds data
from a previous version in an unexpected location without a migration path, the
container will refuse to start. This will cause a database startup failure in any
environment with existing data, making the application unavailable.

Did we get this right? 👍 / 👎 to inform future reviews.

@renovate renovate bot force-pushed the renovate/postgres-18.x branch from 6efb860 to 067629f Compare February 2, 2026 21:56
@coderabbitai
Copy link

coderabbitai bot commented Feb 2, 2026

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review

Comment @coderabbitai help to get the list of available commands and usage tips.

@renovate renovate bot force-pushed the renovate/postgres-18.x branch from 067629f to 9bd80e3 Compare February 3, 2026 17:51
@renovate renovate bot force-pushed the renovate/postgres-18.x branch from 9bd80e3 to 4b5cb18 Compare February 12, 2026 23:50
@renovate renovate bot force-pushed the renovate/postgres-18.x branch from 4b5cb18 to b4304f9 Compare February 26, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants