I have my magento installation and a mysql server running in two local containers and I can successfully connect to mysql from magento's container using mysql -u root -p -h <mysql_container_ip>
but I get a Port must be configured within host parameter
error when trying to access my site. Here's my env:
'connection' => [
'default' => [
'host' => '<mysql_container_ip>:3306',
'dbname' => 'magento2',
'username' => 'root',
'password' => '<password>',
'active' => '1'
]
]