File tree 7 files changed +49
-7
lines changed
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
19
19
cat >&2 << -'EOWARN '
20
20
****************************************************
21
21
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
+
22
28
Use "-e POSTGRES_PASSWORD=password" to set
23
29
it in "docker run".
24
30
****************************************************
@@ -44,7 +50,7 @@ if [ "$1" = 'postgres' ]; then
44
50
EOSQL
45
51
echo
46
52
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
48
54
49
55
if [ -d /docker-entrypoint-initdb.d ]; then
50
56
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
19
19
cat >&2 << -'EOWARN '
20
20
****************************************************
21
21
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
+
22
28
Use "-e POSTGRES_PASSWORD=password" to set
23
29
it in "docker run".
24
30
****************************************************
@@ -44,7 +50,7 @@ if [ "$1" = 'postgres' ]; then
44
50
EOSQL
45
51
echo
46
52
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
48
54
49
55
if [ -d /docker-entrypoint-initdb.d ]; then
50
56
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
19
19
cat >&2 << -'EOWARN '
20
20
****************************************************
21
21
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
+
22
28
Use "-e POSTGRES_PASSWORD=password" to set
23
29
it in "docker run".
24
30
****************************************************
@@ -44,7 +50,7 @@ if [ "$1" = 'postgres' ]; then
44
50
EOSQL
45
51
echo
46
52
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
48
54
49
55
if [ -d /docker-entrypoint-initdb.d ]; then
50
56
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
19
19
cat >&2 << -'EOWARN '
20
20
****************************************************
21
21
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
+
22
28
Use "-e POSTGRES_PASSWORD=password" to set
23
29
it in "docker run".
24
30
****************************************************
@@ -44,7 +50,7 @@ if [ "$1" = 'postgres' ]; then
44
50
EOSQL
45
51
echo
46
52
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
48
54
49
55
if [ -d /docker-entrypoint-initdb.d ]; then
50
56
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
19
19
cat >&2 << -'EOWARN '
20
20
****************************************************
21
21
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
+
22
28
Use "-e POSTGRES_PASSWORD=password" to set
23
29
it in "docker run".
24
30
****************************************************
@@ -44,7 +50,7 @@ if [ "$1" = 'postgres' ]; then
44
50
EOSQL
45
51
echo
46
52
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
48
54
49
55
if [ -d /docker-entrypoint-initdb.d ]; then
50
56
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
19
19
cat >&2 << -'EOWARN '
20
20
****************************************************
21
21
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
+
22
28
Use "-e POSTGRES_PASSWORD=password" to set
23
29
it in "docker run".
24
30
****************************************************
@@ -44,7 +50,7 @@ if [ "$1" = 'postgres' ]; then
44
50
EOSQL
45
51
echo
46
52
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
48
54
49
55
if [ -d /docker-entrypoint-initdb.d ]; then
50
56
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
19
19
cat >&2 << -'EOWARN '
20
20
****************************************************
21
21
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
+
22
28
Use "-e POSTGRES_PASSWORD=password" to set
23
29
it in "docker run".
24
30
****************************************************
@@ -44,7 +50,7 @@ if [ "$1" = 'postgres' ]; then
44
50
EOSQL
45
51
echo
46
52
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
48
54
49
55
if [ -d /docker-entrypoint-initdb.d ]; then
50
56
for f in /docker-entrypoint-initdb.d/* .sh; do
You can’t perform that action at this time.
0 commit comments