WordPress - Getting credentials from configuration files (WIP)
cd /var/www/html
ls -a
#Example output
.htaccess index.php wp-admin wp-config-docker.php wp-config.php wp-content
wp-cron.php wp-includes wp-load.php wp-login.php wp-settings.php xmlrpc.phpcat wp-config.php
#Example output
...
/** Database hostname */
define( 'DB_HOST', getenv_docker('WORDPRESS_DB_HOST', 'mysql') );
/** Database charset to use in creating database tables. */
define( 'DB_CHARSET', getenv_docker('WORDPRESS_DB_CHARSET', 'utf8') );
/** The database collate type. Don't change this if in doubt. */
define( 'DB_COLLATE', getenv_docker('WORDPRESS_DB_COLLATE', '') );
...Last updated