added db and phpmyadmin on docker compose

This commit is contained in:
emmymayo
2025-02-10 01:33:06 +01:00
parent 7269c99357
commit 9122c7f108
3 changed files with 58 additions and 11 deletions
+4 -4
View File
@@ -20,16 +20,16 @@
// ** Database settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'database_name_here' );
define( 'DB_NAME', getenv('WORDPRESS_DB_NAME') ?: 'wordpress' );
/** Database username */
define( 'DB_USER', 'username_here' );
define( 'DB_USER', getenv('WORDPRESS_DB_USER') ?: 'wordpress' );
/** Database password */
define( 'DB_PASSWORD', 'password_here' );
define( 'DB_PASSWORD', getenv('WORDPRESS_DB_PASSWORD') ?: 'wordpress_password' );
/** Database hostname */
define( 'DB_HOST', 'localhost' );
define( 'DB_HOST', getenv('WORDPRESS_DB_HOST') ?: 'db' );
/** Database charset to use in creating database tables. */
define( 'DB_CHARSET', 'utf8' );