Connecting to RDS Mysql from docker container with Wordpress Connecting to RDS Mysql from docker container with Wordpress docker docker

Connecting to RDS Mysql from docker container with Wordpress


According to WordPress's documentation

The environment name should be,

WORDPRESS_DB_HOST=... (defaults to the IP and port of the linked mysql container)WORDPRESS_DB_USER=... (defaults to "root")WORDPRESS_DB_PASSWORD=... (defaults to the value of the MYSQL_ROOT_PASSWORD environment variable from the linked mysql container)WORDPRESS_DB_NAME=... (defaults to "wordpress")WORDPRESS_TABLE_PREFIX=... (defaults to "", only set this when you need to override the default table prefix in wp-config.php)