Commit Graph

76 Commits

Author SHA1 Message Date
Joseph Ferguson 4ee549a0c6 Note on PGDATA changes for PostgreSQL 18+ 2025-06-05 13:50:50 -07:00
reidb1 c8ef3626aa
Fix incorrect shebang in example initialization script
The `/bin/bash` shebang points does not point to the correct path for bash in the container. Because of this, the initialization scripts will not run. Changing to `/usr/bin/env bash` fixes this problem.

Alternatively `/usr/bin/bash` would also work.
2025-05-08 16:02:27 +01:00
Tianon Gravi 15e3853d42 Convert all `stack.yml` to `compose.yaml`
Docker Swarm Mode has been in severely declining usage and maintenance for years now.  Meanwhile, Docker Compose has had quite a lot of changes (notably deprecating the `version:` field required by Swarm / forward compatibility).  As a result, it no longer makes a ton of sense for us to prefer/suggest Swarm usages.

This changes all references to be `compose.yaml` (the upstream-preferred canonical filename: 9a9cc5d9c3/cli/options.go (L384-L385)) directly, leaving "swarm compatibility" as an exercise for the minority of readers who might still need/want it.

Unfortunately, this also means we need to remove all the play-with-docker links (since it only supports stack deploy via URL arguments, not compose), but my experience with that service is that it hasn't been terribly performant for a while, so I don't think this is a huge loss.

(There were also a few trailing references to the long-since-defunct Docker Machine project which have also been cleaned up.)
2025-05-05 15:34:52 -07:00
Lococo 3e7bc1e4f4
Improve PGDATA warning about anonymous volumes (#2505)
* Improve PGDATA warning about anonymous volumes

The people who most need to see this warning will struggle to
understand the meaning of the pre-existing language.

This updated warning:

- Refers to anonymous volumes by their correct name.
- Describes where the mystery mount is coming from.
- States the required behavior quite plainly, you must mount
  at the correct location.

For additional context see:
https://stackoverflow.com/a/76217607

* Frontload persistence warning
2024-12-02 15:31:37 -08:00
Dmitry Bulashev f254f585ba postgres: update README.md
* extended example stack.yml (set shared memory size)
      * fix incorrect link
2024-02-13 23:49:38 +05:00
ttd2089 6c905fd1d5 Fix typo 2023-08-27 10:48:48 -03:00
Matthias Riegler 6b3704046e
fix: rephrase the Postgres PGDATA documentation and add a warning (#2340)
Signed-off-by: Matthias Riegler <matthias.riegler@ankorstore.com>
2023-06-26 11:34:36 -07:00
Wolfgang Walther 954625e05f
Update "arbitrary --user" notes for postgres
nss_wrapper is now available in alpine, too.
2022-12-13 08:23:19 +01:00
wglambert 2aad0d4f0d
Add Alpine locale information for Postgres 15 (#2220) 2022-10-18 11:45:35 -07:00
Maxim Marinchenko 5e28015ab2
Update some external links in the postgres readme (#2161)
* Remove deprecated version element from stack.yml

* Update links in content.md

* Update version in dockerfile snippet

* Revert commit 59a9d9d

* Update postgres version in content.md to 14.3

* Use specific commit/version links in content.md

* Remove "IPVS connection timeout issue" link
2022-06-13 10:34:36 -07:00
Tianon Gravi b57419099a Update POSTGRES_HOST_AUTH_METHOD description 2022-05-10 16:45:36 -07:00
Tianon Gravi 44c07ade44 Adjust a few content oddities
Esp. fixing cases of 91c4530fd2
2022-04-07 11:02:29 -07:00
Tianon Gravi 00ad08f433 Add explicit PostgreSQL note about scram-sha-256 2020-12-28 12:15:44 -08:00
Tianon Gravi 9de4eaaade
Merge pull request #1807 from septatrix/patch-1
Update link to libpq-envvars documentation
2020-12-18 17:05:57 -08:00
Nils K 72a44d5e56 Update link to libpq-envvars documentation
Fixes link to avoid extra redirect and additionally link to the documentation for the current version instead of a fixed version (10)
2020-12-18 17:04:54 -08:00
Aaron 65c3e83fb2
Remove contradictory sentence in Environment Vars
The sentence stated that no environment variables are required to use this image. However, the very first variable - POSTGRES_PASSWORD is stated as required. This is a direct contradiction. This change removes that contradiction and clarifies that the password is required.
2020-10-09 15:14:05 -04:00
Tianon Gravi cfcef2d192 Add note about Alpine locales 2020-08-12 10:00:09 -07:00
Nicolas Guelpa 0d0c721992
Update content.md
The `'` characters around the parameter name and value prevent it to be properly passed and should be skipped.
2020-07-23 14:42:49 -04:00
Javier Aviles 1d2646d0e5 Typo in docker run command 2020-03-27 11:42:04 -07:00
Yuri Astrakhan 5b370d2e60 Update links to Postgis repo
Postgis docker has moved to postgis account.
2020-03-23 11:32:13 -07:00
Joe Ferguson 69a66e6c14 Improve postgres PGDATA documentation 2020-03-18 16:02:19 -07:00
Babak Khalkhali Shandiz 93c9e02671 ✍️ Improve on password/auth environment vars 2020-03-18 16:01:38 -07:00
desmap d82913a35b Update POSTGRES_USER description to clarify "ownership" message 2020-03-13 14:05:04 -07:00
Joe Ferguson cf89f210d3 Add section on POSTGRES_HOST_AUTH_METHOD
also add `-e POSTGRES_PASSWORD=mysecretpassword` to most docker run lines
2020-02-07 16:48:10 -08:00
luto de078cd827
postgresql: link the correct /dev/shm compose docs 2019-10-14 13:34:12 +02:00
Tianon Gravi 8925315ef8 Ditch a lot of "--link" examples (using "--network some-network" instead to force users to do more homework) 2019-03-04 17:15:55 -08:00
Joe Ferguson f61e40452f Add warnings to postgres about an already initialized data directory and adjust section ordering 2019-02-22 14:19:51 -08:00
Tianon Gravi f71a17a632 Drop/adjust a few explicit EXPOSE references (mostly implied, not really adding value) 2019-02-06 15:46:48 -08:00
Tianon Gravi 8b699a7f6e Add a link to Docker's IPVS connection timeout docs for postgres 2018-12-24 14:42:17 -08:00
wglambert c653eef5e3
Update content.md 2018-10-17 12:27:11 -07:00
wglambert 23a608732b
Notes on --shm-size
https://github.com/docker-library/docs/issues/1318
2018-10-11 11:20:26 -07:00
Tianon Gravi 66a348df46 Update postgres with note about Unix socket 2018-09-04 13:39:40 -07:00
Joe Ferguson 42b3d7cdf9 Update postgres initdb information about sourcing scripts vs executing them
for https://github.com/docker-library/postgres/pull/452
2018-06-06 13:52:07 -07:00
Tianon Gravi 8b29e07d9e Update postgres "arbitrary user" notes to reference new nss_wrapper functionality 2018-05-24 13:59:38 -07:00
Sushil Shrestha f0b880775d fix for psql command on extending the script 2018-05-17 13:16:35 +05:45
Tianon Gravi 405d4d5b78 Add a blurb about installing PostgreSQL extensions 2018-04-20 12:50:28 -07:00
Tianon Gravi 9d872c5182 Add a note about Alpine location of "postgresql.conf.sample"
Fixes docker-library/postgres#423
2018-03-23 12:57:24 -07:00
Noah A 1befb43b5b
Update content.md 2018-01-26 14:00:37 -08:00
Noah A a68def8839
Elaboration on POSTGRES_PASSWORD
Added a note to explain that POSTGRES_PASSWORD is not the same as PGPASSWORD. Also, corrected markup issues.
2018-01-25 14:31:12 -08:00
Noah A 97dbbb6d63
Elaboration on POSTGRES_PASSWORD
Added a note to explain that POSTGRES_PASSWORD is not the same as PGPASSWORD.
2018-01-25 14:21:18 -08:00
Joe Ferguson cca7584949 Add notes on how to configure postgres 2017-12-13 09:51:59 -08:00
Tianon Gravi fc99d3233f Adjust "POSTGRES_INITDB_XLOGDIR" to "POSTGRES_INITDB_WALDIR" (with an added note for 9.x) 2017-11-15 13:07:41 -08:00
Tianon Gravi 25a5b70c1b Adjust a ton of image references (especially to use %%IMAGE%%) 2017-10-09 15:30:46 -07:00
Tianon Gravi be60045c28 Add a "Docker Secrets" section to PostgreSQL too 2017-10-04 09:30:46 -07:00
Marcos Lilljedahl 96c08fac21 Add mysql,es,kibana,postgres and adminer 2017-06-18 17:45:24 -03:00
Sergey Zhuravel 12b7486704 Postgres supports sql.gz import from initdb folder 2017-05-22 16:08:07 -07:00
Daniel Dent cc09a2efc0 Document postgres POSTGRES_INITDB_XLOGDIR variable
docker-library/postgres#224 and docker-library/official-images#2762 added the POSTGRES_INITDB_XLOGDIR variable. This adds documentation for that variable.
2017-04-06 14:44:24 -07:00
E Brent Nelson d5880ebacf Add details about trust authentication.
The PostgreSQL image sets up trust authentication and may be confusing for folks who are unfamiliar with it. Add a note to explain this.
2017-04-05 09:56:24 -07:00
Tianon Gravi 9c8e198a1e Add an explicit note about initdb scripts being run as the "postgres" user now 2017-02-28 09:59:31 -08:00
Tianon Gravi 40a4f630ec Add some notes about the caveats for "arbitrary user" support in postgres 2017-01-19 16:22:05 -08:00