File tree Expand file tree Collapse file tree 7 files changed +49
-7
lines changed
Expand file tree Collapse file tree 7 files changed +49
-7
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,12 @@ if [ "$1" = 'postgres' ]; then
1919 cat >&2 << -'EOWARN '
2020 ****************************************************
2121 WARNING: No password has been set for the database.
22+ This will allow anyone with access to the
23+ Postgres port to access your database. In
24+ Docker's default configuration, this is
25+ effectively any other container on the same
26+ system.
27+
2228 Use "-e POSTGRES_PASSWORD=password" to set
2329 it in "docker run".
2430 ****************************************************
@@ -44,7 +50,7 @@ if [ "$1" = 'postgres' ]; then
4450 EOSQL
4551 echo
4652
47- { echo ; echo " host all \" $POSTGRES_USER \" 0.0.0.0/0 $authMethod " ; } >> " $PGDATA " /pg_hba.conf
53+ { echo ; echo " host all all 0.0.0.0/0 $authMethod " ; } >> " $PGDATA " /pg_hba.conf
4854
4955 if [ -d /docker-entrypoint-initdb.d ]; then
5056 for f in /docker-entrypoint-initdb.d/* .sh; do
Original file line number Diff line number Diff line change @@ -19,6 +19,12 @@ if [ "$1" = 'postgres' ]; then
1919 cat >&2 << -'EOWARN '
2020 ****************************************************
2121 WARNING: No password has been set for the database.
22+ This will allow anyone with access to the
23+ Postgres port to access your database. In
24+ Docker's default configuration, this is
25+ effectively any other container on the same
26+ system.
27+
2228 Use "-e POSTGRES_PASSWORD=password" to set
2329 it in "docker run".
2430 ****************************************************
@@ -44,7 +50,7 @@ if [ "$1" = 'postgres' ]; then
4450 EOSQL
4551 echo
4652
47- { echo ; echo " host all \" $POSTGRES_USER \" 0.0.0.0/0 $authMethod " ; } >> " $PGDATA " /pg_hba.conf
53+ { echo ; echo " host all all 0.0.0.0/0 $authMethod " ; } >> " $PGDATA " /pg_hba.conf
4854
4955 if [ -d /docker-entrypoint-initdb.d ]; then
5056 for f in /docker-entrypoint-initdb.d/* .sh; do
Original file line number Diff line number Diff line change @@ -19,6 +19,12 @@ if [ "$1" = 'postgres' ]; then
1919 cat >&2 << -'EOWARN '
2020 ****************************************************
2121 WARNING: No password has been set for the database.
22+ This will allow anyone with access to the
23+ Postgres port to access your database. In
24+ Docker's default configuration, this is
25+ effectively any other container on the same
26+ system.
27+
2228 Use "-e POSTGRES_PASSWORD=password" to set
2329 it in "docker run".
2430 ****************************************************
@@ -44,7 +50,7 @@ if [ "$1" = 'postgres' ]; then
4450 EOSQL
4551 echo
4652
47- { echo ; echo " host all \" $POSTGRES_USER \" 0.0.0.0/0 $authMethod " ; } >> " $PGDATA " /pg_hba.conf
53+ { echo ; echo " host all all 0.0.0.0/0 $authMethod " ; } >> " $PGDATA " /pg_hba.conf
4854
4955 if [ -d /docker-entrypoint-initdb.d ]; then
5056 for f in /docker-entrypoint-initdb.d/* .sh; do
Original file line number Diff line number Diff line change @@ -19,6 +19,12 @@ if [ "$1" = 'postgres' ]; then
1919 cat >&2 << -'EOWARN '
2020 ****************************************************
2121 WARNING: No password has been set for the database.
22+ This will allow anyone with access to the
23+ Postgres port to access your database. In
24+ Docker's default configuration, this is
25+ effectively any other container on the same
26+ system.
27+
2228 Use "-e POSTGRES_PASSWORD=password" to set
2329 it in "docker run".
2430 ****************************************************
@@ -44,7 +50,7 @@ if [ "$1" = 'postgres' ]; then
4450 EOSQL
4551 echo
4652
47- { echo ; echo " host all \" $POSTGRES_USER \" 0.0.0.0/0 $authMethod " ; } >> " $PGDATA " /pg_hba.conf
53+ { echo ; echo " host all all 0.0.0.0/0 $authMethod " ; } >> " $PGDATA " /pg_hba.conf
4854
4955 if [ -d /docker-entrypoint-initdb.d ]; then
5056 for f in /docker-entrypoint-initdb.d/* .sh; do
Original file line number Diff line number Diff line change @@ -19,6 +19,12 @@ if [ "$1" = 'postgres' ]; then
1919 cat >&2 << -'EOWARN '
2020 ****************************************************
2121 WARNING: No password has been set for the database.
22+ This will allow anyone with access to the
23+ Postgres port to access your database. In
24+ Docker's default configuration, this is
25+ effectively any other container on the same
26+ system.
27+
2228 Use "-e POSTGRES_PASSWORD=password" to set
2329 it in "docker run".
2430 ****************************************************
@@ -44,7 +50,7 @@ if [ "$1" = 'postgres' ]; then
4450 EOSQL
4551 echo
4652
47- { echo ; echo " host all \" $POSTGRES_USER \" 0.0.0.0/0 $authMethod " ; } >> " $PGDATA " /pg_hba.conf
53+ { echo ; echo " host all all 0.0.0.0/0 $authMethod " ; } >> " $PGDATA " /pg_hba.conf
4854
4955 if [ -d /docker-entrypoint-initdb.d ]; then
5056 for f in /docker-entrypoint-initdb.d/* .sh; do
Original file line number Diff line number Diff line change @@ -19,6 +19,12 @@ if [ "$1" = 'postgres' ]; then
1919 cat >&2 << -'EOWARN '
2020 ****************************************************
2121 WARNING: No password has been set for the database.
22+ This will allow anyone with access to the
23+ Postgres port to access your database. In
24+ Docker's default configuration, this is
25+ effectively any other container on the same
26+ system.
27+
2228 Use "-e POSTGRES_PASSWORD=password" to set
2329 it in "docker run".
2430 ****************************************************
@@ -44,7 +50,7 @@ if [ "$1" = 'postgres' ]; then
4450 EOSQL
4551 echo
4652
47- { echo ; echo " host all \" $POSTGRES_USER \" 0.0.0.0/0 $authMethod " ; } >> " $PGDATA " /pg_hba.conf
53+ { echo ; echo " host all all 0.0.0.0/0 $authMethod " ; } >> " $PGDATA " /pg_hba.conf
4854
4955 if [ -d /docker-entrypoint-initdb.d ]; then
5056 for f in /docker-entrypoint-initdb.d/* .sh; do
Original file line number Diff line number Diff line change @@ -19,6 +19,12 @@ if [ "$1" = 'postgres' ]; then
1919 cat >&2 << -'EOWARN '
2020 ****************************************************
2121 WARNING: No password has been set for the database.
22+ This will allow anyone with access to the
23+ Postgres port to access your database. In
24+ Docker's default configuration, this is
25+ effectively any other container on the same
26+ system.
27+
2228 Use "-e POSTGRES_PASSWORD=password" to set
2329 it in "docker run".
2430 ****************************************************
@@ -44,7 +50,7 @@ if [ "$1" = 'postgres' ]; then
4450 EOSQL
4551 echo
4652
47- { echo ; echo " host all \" $POSTGRES_USER \" 0.0.0.0/0 $authMethod " ; } >> " $PGDATA " /pg_hba.conf
53+ { echo ; echo " host all all 0.0.0.0/0 $authMethod " ; } >> " $PGDATA " /pg_hba.conf
4854
4955 if [ -d /docker-entrypoint-initdb.d ]; then
5056 for f in /docker-entrypoint-initdb.d/* .sh; do
You can’t perform that action at this time.
0 commit comments