Skip to content

docs: Update postgres volume bind mount#1597

Open
ClementPhan wants to merge 1 commit into
TwiN:masterfrom
ClementPhan:master
Open

docs: Update postgres volume bind mount#1597
ClementPhan wants to merge 1 commit into
TwiN:masterfrom
ClementPhan:master

Conversation

@ClementPhan
Copy link
Copy Markdown

@ClementPhan ClementPhan commented Mar 24, 2026

Summary

This update the bind mount for the postgres docker compose example.

This will fix #1596

Checklist

  • Tested and/or added tests to validate that the changes work as intended, if applicable.
  • Updated documentation in README.md, if applicable.

@github-actions github-actions Bot added documentation Improvements or additions to documentation area/storage Related to storage labels Mar 24, 2026
@amai2012
Copy link
Copy Markdown

If the data directory is version dependent, the example should use a proper tag for the postgres image.

@ClementPhan
Copy link
Copy Markdown
Author

I do not believe a version tag to be necessary. The example is already implicitly targeting the "latest" tag where the mount point has already changed and the example fails to launch the containers.

If a version was specified, it could indicate there is a specific version expected from Gatus. I have made this assumption in the past, for other projects.

Furthermore, while the data path is version dependent, the mount point is not. The Postgres container documentation shows that the database will keep the files in the new mount, even in future major versions.

There could be an issue if the user specified a version tag of < 18, but I do not believe this is in the scope of an example config. Please correct and edit the request if I am mistaken.

@amai2012
Copy link
Copy Markdown

adding the image tag 18 would:

  1. keep the example valid even if postgres 19 would change the data dir again
  2. document a known combination to work

Actually the missing tag is not a weak point of your contribution, but on the example as it has been before.

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

Labels

area/storage Related to storage documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: Update the bind mount for the postgres docker example

2 participants