Skip to content

Conversation

@brandon1024
Copy link

Summary

This revision bumps postgres from version 14 to the latest supported release, version 18. In version 18, the format of the persistent storage volume changed to improve ease of database upgrades. To accomodate this, the volume mounts for the postgres service in docker compose was adjusted. Refer to the upstream documentation for more details.

Additionally, mattermost was upgraded to the latest patch release 10.11.7 which includes some low- to medium-severity security fixes.

I've tested this in my personal environment for a few weeks, works well :-)

Ticket Link

None.

@brandon1024
Copy link
Author

brandon1024 commented Nov 17, 2025

Just to offer a bit of background on this change, I had originally deployed mattermost in my environment using the old postgres version listed here, but eventually wanted to upgrade to stay ahead in the postgres release cycle. Upgrading postgres is a bit of a pain, but the changes introduced in version 18 of the upstream docker image will make that much easier going forward.

Important Change: the PGDATA environment variable of the image was changed to be version specific in PostgreSQL 18 and above⁠. For 18 it is /var/lib/postgresql/18/docker. Later versions will replace 18 with their respective major version (e.g., /var/lib/postgresql/19/docker for PostgreSQL 19.x). Mounts and volumes should be targeted at the updated location. This will allow users upgrading between PostgreSQL major releases to use the faster --link when running pg_upgrade and mounting /var/lib/postgresql.

I figured I'd contribute that back to the community so that future upgrades are either for all.

Thanks for the awesome platform, I've been really enjoying mattermost!

@mattermost-build
Copy link

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

@brandon1024
Copy link
Author

Not stale -- just waiting for review from a maintainer :-)

/cc @amyblais

@amyblais amyblais added the 2: Dev Review Requires review by a core committer label Dec 1, 2025
@amyblais amyblais requested a review from hanzei December 1, 2025 08:30
@hanzei hanzei requested a review from NARSimoes December 1, 2025 08:32
This revision bumps postgres from version 14 to the latest supported
release, version 18. In version 18, the format of the persistent storage
volume changed to improve ease of database upgrades. To accomodate this,
the volume mounts for the postgres service in docker compose was
adjusted. Refer to the upstream documentation for more details.

Additionally, mattermost was upgraded to the latest patch release
10.11.7 which includes some low- to medium-severity security fixes.
@hanzei hanzei removed their request for review December 1, 2025 11:08
Copy link

@NARSimoes NARSimoes left a comment

Choose a reason for hiding this comment

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

Thank you for submitting the change. I just have a minor comment for clarification, but otherwise looks good.

@mattermost-build
Copy link

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

@brandon1024
Copy link
Author

Still active, just awaiting review.

@mattermost-build
Copy link

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

@brandon1024
Copy link
Author

Still active, just pending merge from maintainers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2: Dev Review Requires review by a core committer Lifecycle/1:stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants