I'm trying to implement this pre-cooked package of NGINX, PHP-FPM, MySQL, E-L-K.
Everything is working fine but the connection with the database. It throws a ConnectionException.
I'm not really sure if the program should try to access 172.18.0.4 instead of 172.18.0.3, and where does this configuration comes from.
The IPs of my containers are:
/dockersymfony_elk_1 - 172.18.0.2
/dockersymfony_nginx_1 - 172.18.0.5
/dockersymfony_php_1 - 172.18.0.3
/dockersymfony_db_1 - 172.18.0.4
The error:
[Doctrine\DBAL\Exception\ConnectionException]
An exception occured in driver: SQLSTATE[HY000] [1045] Access denied for user 'root'@'172.18.0.3' (using password: YES)
What could be happenning? Is there a way to check a mysql connection manually?