From 97dbbb6d63a4ab003948d6e392b3eea740aeca35 Mon Sep 17 00:00:00 2001 From: Noah A Date: Thu, 25 Jan 2018 14:21:18 -0800 Subject: [PATCH 1/3] Elaboration on POSTGRES_PASSWORD Added a note to explain that POSTGRES_PASSWORD is not the same as PGPASSWORD. --- postgres/content.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/postgres/content.md b/postgres/content.md index 825fa2862..ef7b3df00 100644 --- a/postgres/content.md +++ b/postgres/content.md @@ -55,7 +55,9 @@ The PostgreSQL image uses several environment variables which are easy to miss. This environment variable is recommended for you to use the PostgreSQL image. This environment variable sets the superuser password for PostgreSQL. The default superuser is defined by the `POSTGRES_USER` environment variable. In the above example, it is being set to "mysecretpassword". -Note: The PostgreSQL image sets up `trust` authentication locally so you may notice a password is not required when connecting from `localhost` (inside the same container). However, a password will be required if connecting from a different host/container. +Note 1: The PostgreSQL image sets up `trust` authentication locally so you may notice a password is not required when connecting from `localhost` (inside the same container). However, a password will be required if connecting from a different host/container. + +Note 2: This variable sets the superuser password in the PostgreSQL instance, and has no effect on the PGPASSWORD variable that may be used by the psql client. PGPASSWORD, if used, will be specified as a separate environment variable. ### `POSTGRES_USER` From a68def88391d3e444ae128a492431fdb94a56655 Mon Sep 17 00:00:00 2001 From: Noah A Date: Thu, 25 Jan 2018 14:31:12 -0800 Subject: [PATCH 2/3] Elaboration on POSTGRES_PASSWORD Added a note to explain that POSTGRES_PASSWORD is not the same as PGPASSWORD. Also, corrected markup issues. --- postgres/content.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgres/content.md b/postgres/content.md index ef7b3df00..a0def4689 100644 --- a/postgres/content.md +++ b/postgres/content.md @@ -57,7 +57,7 @@ This environment variable is recommended for you to use the PostgreSQL image. Th Note 1: The PostgreSQL image sets up `trust` authentication locally so you may notice a password is not required when connecting from `localhost` (inside the same container). However, a password will be required if connecting from a different host/container. -Note 2: This variable sets the superuser password in the PostgreSQL instance, and has no effect on the PGPASSWORD variable that may be used by the psql client. PGPASSWORD, if used, will be specified as a separate environment variable. +Note 2: This variable sets the superuser password in the PostgreSQL instance, and has no effect on the PGPASSWORD variable that may be used by the psql client. PGPASSWORD, if used, will be specified as a separate environment variable. ### `POSTGRES_USER` From 1befb43b5bb74550cdc99b3f7b5b1b5dac18df56 Mon Sep 17 00:00:00 2001 From: Noah A Date: Fri, 26 Jan 2018 14:00:37 -0800 Subject: [PATCH 3/3] Update content.md --- postgres/content.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgres/content.md b/postgres/content.md index a0def4689..fc321aaf3 100644 --- a/postgres/content.md +++ b/postgres/content.md @@ -57,7 +57,7 @@ This environment variable is recommended for you to use the PostgreSQL image. Th Note 1: The PostgreSQL image sets up `trust` authentication locally so you may notice a password is not required when connecting from `localhost` (inside the same container). However, a password will be required if connecting from a different host/container. -Note 2: This variable sets the superuser password in the PostgreSQL instance, and has no effect on the PGPASSWORD variable that may be used by the psql client. PGPASSWORD, if used, will be specified as a separate environment variable. +Note 2: This variable defines the superuser password in the PostgreSQL instance, as set by the `initdb` script during inital container startup. It has no effect on the `PGPASSWORD` environment variable that may be used by the `psql` client at runtime, as described at [https://www.postgresql.org/docs/10/static/libpq-envars.html](https://www.postgresql.org/docs/10/static/libpq-envars.html). `PGPASSWORD`, if used, will be specified as a separate environment variable. ### `POSTGRES_USER`