浏览代码

Elaboration on POSTGRES_PASSWORD

Added a note to explain that POSTGRES_PASSWORD is not the same as PGPASSWORD.
Noah A 7 年之前
父节点
当前提交
97dbbb6d63
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      postgres/content.md

+ 3 - 1
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`