Skip to content

Update wordpress#9806

Merged
yosifkit merged 1 commit intodocker-library:masterfrom
docker-library-bot:wordpress
Mar 17, 2021
Merged

Update wordpress#9806
yosifkit merged 1 commit intodocker-library:masterfrom
docker-library-bot:wordpress

Conversation

@tianon
Copy link
Member

@tianon tianon commented Mar 17, 2021

Changes:

Changes:

- docker-library/wordpress@0f81a03: Merge pull request docker-library/wordpress#577 from infosiftr/restore-default-env-values
- docker-library/wordpress@c313a26: Remove newlines from `_FILE` contents
- docker-library/wordpress@95ca33a: Use WordPress setup default values for env variables; use empty env values
@github-actions
Copy link

Diff for 27fe225:
diff --git a/_bashbrew-cat b/_bashbrew-cat
index 349657b..2ad64ba 100644
--- a/_bashbrew-cat
+++ b/_bashbrew-cat
@@ -3,47 +3,47 @@ GitRepo: https://github.com/docker-library/wordpress.git
 
 Tags: 5.7.0-apache, 5.7-apache, 5-apache, apache, 5.7.0, 5.7, 5, latest, 5.7.0-php7.4-apache, 5.7-php7.4-apache, 5-php7.4-apache, php7.4-apache, 5.7.0-php7.4, 5.7-php7.4, 5-php7.4, php7.4
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 891b7108294a629e6cc16c2f4bf643d9475894cc
+GitCommit: c313a26c26e936a4ef8c4601185dc60fc848779d
 Directory: latest/php7.4/apache
 
 Tags: 5.7.0-fpm, 5.7-fpm, 5-fpm, fpm, 5.7.0-php7.4-fpm, 5.7-php7.4-fpm, 5-php7.4-fpm, php7.4-fpm
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 891b7108294a629e6cc16c2f4bf643d9475894cc
+GitCommit: c313a26c26e936a4ef8c4601185dc60fc848779d
 Directory: latest/php7.4/fpm
 
 Tags: 5.7.0-fpm-alpine, 5.7-fpm-alpine, 5-fpm-alpine, fpm-alpine, 5.7.0-php7.4-fpm-alpine, 5.7-php7.4-fpm-alpine, 5-php7.4-fpm-alpine, php7.4-fpm-alpine
 Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: 891b7108294a629e6cc16c2f4bf643d9475894cc
+GitCommit: c313a26c26e936a4ef8c4601185dc60fc848779d
 Directory: latest/php7.4/fpm-alpine
 
 Tags: 5.7.0-php7.3-apache, 5.7-php7.3-apache, 5-php7.3-apache, php7.3-apache, 5.7.0-php7.3, 5.7-php7.3, 5-php7.3, php7.3
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 891b7108294a629e6cc16c2f4bf643d9475894cc
+GitCommit: c313a26c26e936a4ef8c4601185dc60fc848779d
 Directory: latest/php7.3/apache
 
 Tags: 5.7.0-php7.3-fpm, 5.7-php7.3-fpm, 5-php7.3-fpm, php7.3-fpm
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 891b7108294a629e6cc16c2f4bf643d9475894cc
+GitCommit: c313a26c26e936a4ef8c4601185dc60fc848779d
 Directory: latest/php7.3/fpm
 
 Tags: 5.7.0-php7.3-fpm-alpine, 5.7-php7.3-fpm-alpine, 5-php7.3-fpm-alpine, php7.3-fpm-alpine
 Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: 891b7108294a629e6cc16c2f4bf643d9475894cc
+GitCommit: c313a26c26e936a4ef8c4601185dc60fc848779d
 Directory: latest/php7.3/fpm-alpine
 
 Tags: 5.7.0-php8.0-apache, 5.7-php8.0-apache, 5-php8.0-apache, php8.0-apache, 5.7.0-php8.0, 5.7-php8.0, 5-php8.0, php8.0
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 891b7108294a629e6cc16c2f4bf643d9475894cc
+GitCommit: c313a26c26e936a4ef8c4601185dc60fc848779d
 Directory: latest/php8.0/apache
 
 Tags: 5.7.0-php8.0-fpm, 5.7-php8.0-fpm, 5-php8.0-fpm, php8.0-fpm
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 891b7108294a629e6cc16c2f4bf643d9475894cc
+GitCommit: c313a26c26e936a4ef8c4601185dc60fc848779d
 Directory: latest/php8.0/fpm
 
 Tags: 5.7.0-php8.0-fpm-alpine, 5.7-php8.0-fpm-alpine, 5-php8.0-fpm-alpine, php8.0-fpm-alpine
 Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: 891b7108294a629e6cc16c2f4bf643d9475894cc
+GitCommit: c313a26c26e936a4ef8c4601185dc60fc848779d
 Directory: latest/php8.0/fpm-alpine
 
 Tags: cli-2.4.0, cli-2.4, cli-2, cli, cli-2.4.0-php7.4, cli-2.4-php7.4, cli-2-php7.4, cli-php7.4
diff --git a/wordpress_php7.3-fpm-alpine/wp-config-docker.php b/wordpress_php7.3-fpm-alpine/wp-config-docker.php
index 5a43e8e..247ecb7 100644
--- a/wordpress_php7.3-fpm-alpine/wp-config-docker.php
+++ b/wordpress_php7.3-fpm-alpine/wp-config-docker.php
@@ -26,9 +26,9 @@
 // a helper function to lookup "env_FILE", "env", then fallback
 function getenv_docker($env, $default) {
 	if ($fileEnv = getenv($env . '_FILE')) {
-		return file_get_contents($fileEnv);
+		return rtrim(file_get_contents($fileEnv), "\r\n");
 	}
-	else if ($val = getenv($env)) {
+	else if (($val = getenv($env)) !== false) {
 		return $val;
 	}
 	else {
@@ -38,13 +38,19 @@ function getenv_docker($env, $default) {
 
 // ** MySQL settings - You can get this info from your web host ** //
 /** The name of the database for WordPress */
-define( 'DB_NAME', getenv_docker('WORDPRESS_DB_NAME', 'database_name_here') );
+define( 'DB_NAME', getenv_docker('WORDPRESS_DB_NAME', 'wordpress') );
 
 /** MySQL database username */
-define( 'DB_USER', getenv_docker('WORDPRESS_DB_USER', 'username_here') );
+define( 'DB_USER', getenv_docker('WORDPRESS_DB_USER', 'example username') );
 
 /** MySQL database password */
-define( 'DB_PASSWORD', getenv_docker('WORDPRESS_DB_PASSWORD', 'password_here') );
+define( 'DB_PASSWORD', getenv_docker('WORDPRESS_DB_PASSWORD', 'example password') );
+
+/**
+ * Docker image fallback values above are sourced from the official WordPress installation wizard:
+ * https://github.com/WordPress/WordPress/blob/f9cc35ebad82753e9c86de322ea5c76a9001c7e2/wp-admin/setup-config.php#L216-L230
+ * (However, using "example username" and "example password" in your database is strongly discouraged.  Please use strong, random credentials!)
+ */
 
 /** MySQL hostname */
 define( 'DB_HOST', getenv_docker('WORDPRESS_DB_HOST', 'mysql') );
diff --git a/wordpress_php7.3-fpm/wp-config-docker.php b/wordpress_php7.3-fpm/wp-config-docker.php
index 5a43e8e..247ecb7 100644
--- a/wordpress_php7.3-fpm/wp-config-docker.php
+++ b/wordpress_php7.3-fpm/wp-config-docker.php
@@ -26,9 +26,9 @@
 // a helper function to lookup "env_FILE", "env", then fallback
 function getenv_docker($env, $default) {
 	if ($fileEnv = getenv($env . '_FILE')) {
-		return file_get_contents($fileEnv);
+		return rtrim(file_get_contents($fileEnv), "\r\n");
 	}
-	else if ($val = getenv($env)) {
+	else if (($val = getenv($env)) !== false) {
 		return $val;
 	}
 	else {
@@ -38,13 +38,19 @@ function getenv_docker($env, $default) {
 
 // ** MySQL settings - You can get this info from your web host ** //
 /** The name of the database for WordPress */
-define( 'DB_NAME', getenv_docker('WORDPRESS_DB_NAME', 'database_name_here') );
+define( 'DB_NAME', getenv_docker('WORDPRESS_DB_NAME', 'wordpress') );
 
 /** MySQL database username */
-define( 'DB_USER', getenv_docker('WORDPRESS_DB_USER', 'username_here') );
+define( 'DB_USER', getenv_docker('WORDPRESS_DB_USER', 'example username') );
 
 /** MySQL database password */
-define( 'DB_PASSWORD', getenv_docker('WORDPRESS_DB_PASSWORD', 'password_here') );
+define( 'DB_PASSWORD', getenv_docker('WORDPRESS_DB_PASSWORD', 'example password') );
+
+/**
+ * Docker image fallback values above are sourced from the official WordPress installation wizard:
+ * https://github.com/WordPress/WordPress/blob/f9cc35ebad82753e9c86de322ea5c76a9001c7e2/wp-admin/setup-config.php#L216-L230
+ * (However, using "example username" and "example password" in your database is strongly discouraged.  Please use strong, random credentials!)
+ */
 
 /** MySQL hostname */
 define( 'DB_HOST', getenv_docker('WORDPRESS_DB_HOST', 'mysql') );
diff --git a/wordpress_php7.3/wp-config-docker.php b/wordpress_php7.3/wp-config-docker.php
index 5a43e8e..247ecb7 100644
--- a/wordpress_php7.3/wp-config-docker.php
+++ b/wordpress_php7.3/wp-config-docker.php
@@ -26,9 +26,9 @@
 // a helper function to lookup "env_FILE", "env", then fallback
 function getenv_docker($env, $default) {
 	if ($fileEnv = getenv($env . '_FILE')) {
-		return file_get_contents($fileEnv);
+		return rtrim(file_get_contents($fileEnv), "\r\n");
 	}
-	else if ($val = getenv($env)) {
+	else if (($val = getenv($env)) !== false) {
 		return $val;
 	}
 	else {
@@ -38,13 +38,19 @@ function getenv_docker($env, $default) {
 
 // ** MySQL settings - You can get this info from your web host ** //
 /** The name of the database for WordPress */
-define( 'DB_NAME', getenv_docker('WORDPRESS_DB_NAME', 'database_name_here') );
+define( 'DB_NAME', getenv_docker('WORDPRESS_DB_NAME', 'wordpress') );
 
 /** MySQL database username */
-define( 'DB_USER', getenv_docker('WORDPRESS_DB_USER', 'username_here') );
+define( 'DB_USER', getenv_docker('WORDPRESS_DB_USER', 'example username') );
 
 /** MySQL database password */
-define( 'DB_PASSWORD', getenv_docker('WORDPRESS_DB_PASSWORD', 'password_here') );
+define( 'DB_PASSWORD', getenv_docker('WORDPRESS_DB_PASSWORD', 'example password') );
+
+/**
+ * Docker image fallback values above are sourced from the official WordPress installation wizard:
+ * https://github.com/WordPress/WordPress/blob/f9cc35ebad82753e9c86de322ea5c76a9001c7e2/wp-admin/setup-config.php#L216-L230
+ * (However, using "example username" and "example password" in your database is strongly discouraged.  Please use strong, random credentials!)
+ */
 
 /** MySQL hostname */
 define( 'DB_HOST', getenv_docker('WORDPRESS_DB_HOST', 'mysql') );
diff --git a/wordpress_php7.4-fpm-alpine/wp-config-docker.php b/wordpress_php7.4-fpm-alpine/wp-config-docker.php
index 5a43e8e..247ecb7 100644
--- a/wordpress_php7.4-fpm-alpine/wp-config-docker.php
+++ b/wordpress_php7.4-fpm-alpine/wp-config-docker.php
@@ -26,9 +26,9 @@
 // a helper function to lookup "env_FILE", "env", then fallback
 function getenv_docker($env, $default) {
 	if ($fileEnv = getenv($env . '_FILE')) {
-		return file_get_contents($fileEnv);
+		return rtrim(file_get_contents($fileEnv), "\r\n");
 	}
-	else if ($val = getenv($env)) {
+	else if (($val = getenv($env)) !== false) {
 		return $val;
 	}
 	else {
@@ -38,13 +38,19 @@ function getenv_docker($env, $default) {
 
 // ** MySQL settings - You can get this info from your web host ** //
 /** The name of the database for WordPress */
-define( 'DB_NAME', getenv_docker('WORDPRESS_DB_NAME', 'database_name_here') );
+define( 'DB_NAME', getenv_docker('WORDPRESS_DB_NAME', 'wordpress') );
 
 /** MySQL database username */
-define( 'DB_USER', getenv_docker('WORDPRESS_DB_USER', 'username_here') );
+define( 'DB_USER', getenv_docker('WORDPRESS_DB_USER', 'example username') );
 
 /** MySQL database password */
-define( 'DB_PASSWORD', getenv_docker('WORDPRESS_DB_PASSWORD', 'password_here') );
+define( 'DB_PASSWORD', getenv_docker('WORDPRESS_DB_PASSWORD', 'example password') );
+
+/**
+ * Docker image fallback values above are sourced from the official WordPress installation wizard:
+ * https://github.com/WordPress/WordPress/blob/f9cc35ebad82753e9c86de322ea5c76a9001c7e2/wp-admin/setup-config.php#L216-L230
+ * (However, using "example username" and "example password" in your database is strongly discouraged.  Please use strong, random credentials!)
+ */
 
 /** MySQL hostname */
 define( 'DB_HOST', getenv_docker('WORDPRESS_DB_HOST', 'mysql') );
diff --git a/wordpress_php7.4-fpm/wp-config-docker.php b/wordpress_php7.4-fpm/wp-config-docker.php
index 5a43e8e..247ecb7 100644
--- a/wordpress_php7.4-fpm/wp-config-docker.php
+++ b/wordpress_php7.4-fpm/wp-config-docker.php
@@ -26,9 +26,9 @@
 // a helper function to lookup "env_FILE", "env", then fallback
 function getenv_docker($env, $default) {
 	if ($fileEnv = getenv($env . '_FILE')) {
-		return file_get_contents($fileEnv);
+		return rtrim(file_get_contents($fileEnv), "\r\n");
 	}
-	else if ($val = getenv($env)) {
+	else if (($val = getenv($env)) !== false) {
 		return $val;
 	}
 	else {
@@ -38,13 +38,19 @@ function getenv_docker($env, $default) {
 
 // ** MySQL settings - You can get this info from your web host ** //
 /** The name of the database for WordPress */
-define( 'DB_NAME', getenv_docker('WORDPRESS_DB_NAME', 'database_name_here') );
+define( 'DB_NAME', getenv_docker('WORDPRESS_DB_NAME', 'wordpress') );
 
 /** MySQL database username */
-define( 'DB_USER', getenv_docker('WORDPRESS_DB_USER', 'username_here') );
+define( 'DB_USER', getenv_docker('WORDPRESS_DB_USER', 'example username') );
 
 /** MySQL database password */
-define( 'DB_PASSWORD', getenv_docker('WORDPRESS_DB_PASSWORD', 'password_here') );
+define( 'DB_PASSWORD', getenv_docker('WORDPRESS_DB_PASSWORD', 'example password') );
+
+/**
+ * Docker image fallback values above are sourced from the official WordPress installation wizard:
+ * https://github.com/WordPress/WordPress/blob/f9cc35ebad82753e9c86de322ea5c76a9001c7e2/wp-admin/setup-config.php#L216-L230
+ * (However, using "example username" and "example password" in your database is strongly discouraged.  Please use strong, random credentials!)
+ */
 
 /** MySQL hostname */
 define( 'DB_HOST', getenv_docker('WORDPRESS_DB_HOST', 'mysql') );
diff --git a/wordpress_php7.4/wp-config-docker.php b/wordpress_php7.4/wp-config-docker.php
index 5a43e8e..247ecb7 100644
--- a/wordpress_php7.4/wp-config-docker.php
+++ b/wordpress_php7.4/wp-config-docker.php
@@ -26,9 +26,9 @@
 // a helper function to lookup "env_FILE", "env", then fallback
 function getenv_docker($env, $default) {
 	if ($fileEnv = getenv($env . '_FILE')) {
-		return file_get_contents($fileEnv);
+		return rtrim(file_get_contents($fileEnv), "\r\n");
 	}
-	else if ($val = getenv($env)) {
+	else if (($val = getenv($env)) !== false) {
 		return $val;
 	}
 	else {
@@ -38,13 +38,19 @@ function getenv_docker($env, $default) {
 
 // ** MySQL settings - You can get this info from your web host ** //
 /** The name of the database for WordPress */
-define( 'DB_NAME', getenv_docker('WORDPRESS_DB_NAME', 'database_name_here') );
+define( 'DB_NAME', getenv_docker('WORDPRESS_DB_NAME', 'wordpress') );
 
 /** MySQL database username */
-define( 'DB_USER', getenv_docker('WORDPRESS_DB_USER', 'username_here') );
+define( 'DB_USER', getenv_docker('WORDPRESS_DB_USER', 'example username') );
 
 /** MySQL database password */
-define( 'DB_PASSWORD', getenv_docker('WORDPRESS_DB_PASSWORD', 'password_here') );
+define( 'DB_PASSWORD', getenv_docker('WORDPRESS_DB_PASSWORD', 'example password') );
+
+/**
+ * Docker image fallback values above are sourced from the official WordPress installation wizard:
+ * https://github.com/WordPress/WordPress/blob/f9cc35ebad82753e9c86de322ea5c76a9001c7e2/wp-admin/setup-config.php#L216-L230
+ * (However, using "example username" and "example password" in your database is strongly discouraged.  Please use strong, random credentials!)
+ */
 
 /** MySQL hostname */
 define( 'DB_HOST', getenv_docker('WORDPRESS_DB_HOST', 'mysql') );
diff --git a/wordpress_php8.0-fpm-alpine/wp-config-docker.php b/wordpress_php8.0-fpm-alpine/wp-config-docker.php
index 5a43e8e..247ecb7 100644
--- a/wordpress_php8.0-fpm-alpine/wp-config-docker.php
+++ b/wordpress_php8.0-fpm-alpine/wp-config-docker.php
@@ -26,9 +26,9 @@
 // a helper function to lookup "env_FILE", "env", then fallback
 function getenv_docker($env, $default) {
 	if ($fileEnv = getenv($env . '_FILE')) {
-		return file_get_contents($fileEnv);
+		return rtrim(file_get_contents($fileEnv), "\r\n");
 	}
-	else if ($val = getenv($env)) {
+	else if (($val = getenv($env)) !== false) {
 		return $val;
 	}
 	else {
@@ -38,13 +38,19 @@ function getenv_docker($env, $default) {
 
 // ** MySQL settings - You can get this info from your web host ** //
 /** The name of the database for WordPress */
-define( 'DB_NAME', getenv_docker('WORDPRESS_DB_NAME', 'database_name_here') );
+define( 'DB_NAME', getenv_docker('WORDPRESS_DB_NAME', 'wordpress') );
 
 /** MySQL database username */
-define( 'DB_USER', getenv_docker('WORDPRESS_DB_USER', 'username_here') );
+define( 'DB_USER', getenv_docker('WORDPRESS_DB_USER', 'example username') );
 
 /** MySQL database password */
-define( 'DB_PASSWORD', getenv_docker('WORDPRESS_DB_PASSWORD', 'password_here') );
+define( 'DB_PASSWORD', getenv_docker('WORDPRESS_DB_PASSWORD', 'example password') );
+
+/**
+ * Docker image fallback values above are sourced from the official WordPress installation wizard:
+ * https://github.com/WordPress/WordPress/blob/f9cc35ebad82753e9c86de322ea5c76a9001c7e2/wp-admin/setup-config.php#L216-L230
+ * (However, using "example username" and "example password" in your database is strongly discouraged.  Please use strong, random credentials!)
+ */
 
 /** MySQL hostname */
 define( 'DB_HOST', getenv_docker('WORDPRESS_DB_HOST', 'mysql') );
diff --git a/wordpress_php8.0-fpm/wp-config-docker.php b/wordpress_php8.0-fpm/wp-config-docker.php
index 5a43e8e..247ecb7 100644
--- a/wordpress_php8.0-fpm/wp-config-docker.php
+++ b/wordpress_php8.0-fpm/wp-config-docker.php
@@ -26,9 +26,9 @@
 // a helper function to lookup "env_FILE", "env", then fallback
 function getenv_docker($env, $default) {
 	if ($fileEnv = getenv($env . '_FILE')) {
-		return file_get_contents($fileEnv);
+		return rtrim(file_get_contents($fileEnv), "\r\n");
 	}
-	else if ($val = getenv($env)) {
+	else if (($val = getenv($env)) !== false) {
 		return $val;
 	}
 	else {
@@ -38,13 +38,19 @@ function getenv_docker($env, $default) {
 
 // ** MySQL settings - You can get this info from your web host ** //
 /** The name of the database for WordPress */
-define( 'DB_NAME', getenv_docker('WORDPRESS_DB_NAME', 'database_name_here') );
+define( 'DB_NAME', getenv_docker('WORDPRESS_DB_NAME', 'wordpress') );
 
 /** MySQL database username */
-define( 'DB_USER', getenv_docker('WORDPRESS_DB_USER', 'username_here') );
+define( 'DB_USER', getenv_docker('WORDPRESS_DB_USER', 'example username') );
 
 /** MySQL database password */
-define( 'DB_PASSWORD', getenv_docker('WORDPRESS_DB_PASSWORD', 'password_here') );
+define( 'DB_PASSWORD', getenv_docker('WORDPRESS_DB_PASSWORD', 'example password') );
+
+/**
+ * Docker image fallback values above are sourced from the official WordPress installation wizard:
+ * https://github.com/WordPress/WordPress/blob/f9cc35ebad82753e9c86de322ea5c76a9001c7e2/wp-admin/setup-config.php#L216-L230
+ * (However, using "example username" and "example password" in your database is strongly discouraged.  Please use strong, random credentials!)
+ */
 
 /** MySQL hostname */
 define( 'DB_HOST', getenv_docker('WORDPRESS_DB_HOST', 'mysql') );
diff --git a/wordpress_php8.0/wp-config-docker.php b/wordpress_php8.0/wp-config-docker.php
index 5a43e8e..247ecb7 100644
--- a/wordpress_php8.0/wp-config-docker.php
+++ b/wordpress_php8.0/wp-config-docker.php
@@ -26,9 +26,9 @@
 // a helper function to lookup "env_FILE", "env", then fallback
 function getenv_docker($env, $default) {
 	if ($fileEnv = getenv($env . '_FILE')) {
-		return file_get_contents($fileEnv);
+		return rtrim(file_get_contents($fileEnv), "\r\n");
 	}
-	else if ($val = getenv($env)) {
+	else if (($val = getenv($env)) !== false) {
 		return $val;
 	}
 	else {
@@ -38,13 +38,19 @@ function getenv_docker($env, $default) {
 
 // ** MySQL settings - You can get this info from your web host ** //
 /** The name of the database for WordPress */
-define( 'DB_NAME', getenv_docker('WORDPRESS_DB_NAME', 'database_name_here') );
+define( 'DB_NAME', getenv_docker('WORDPRESS_DB_NAME', 'wordpress') );
 
 /** MySQL database username */
-define( 'DB_USER', getenv_docker('WORDPRESS_DB_USER', 'username_here') );
+define( 'DB_USER', getenv_docker('WORDPRESS_DB_USER', 'example username') );
 
 /** MySQL database password */
-define( 'DB_PASSWORD', getenv_docker('WORDPRESS_DB_PASSWORD', 'password_here') );
+define( 'DB_PASSWORD', getenv_docker('WORDPRESS_DB_PASSWORD', 'example password') );
+
+/**
+ * Docker image fallback values above are sourced from the official WordPress installation wizard:
+ * https://github.com/WordPress/WordPress/blob/f9cc35ebad82753e9c86de322ea5c76a9001c7e2/wp-admin/setup-config.php#L216-L230
+ * (However, using "example username" and "example password" in your database is strongly discouraged.  Please use strong, random credentials!)
+ */
 
 /** MySQL hostname */
 define( 'DB_HOST', getenv_docker('WORDPRESS_DB_HOST', 'mysql') );

@yosifkit yosifkit merged commit c835621 into docker-library:master Mar 17, 2021
@yosifkit yosifkit deleted the wordpress branch March 17, 2021 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments