pierrecdn / phpipam

phpIPAM Docker image
GNU Lesser General Public License v3.0
94 stars 111 forks source link

db connect not working when using docker-compose #25

Closed sbrueseke closed 6 years ago

sbrueseke commented 6 years ago

db connect is not working when using this docker-compose. After enterning credentials for automatic installation the following errors are shown:

Database error: Could not connect to database! SQLSTATE[HY000] [1045] Access denied for user 'root'@'172.22.0.4' (using password: NO)

Error: Could not connect to database! SQLSTATE[HY000] [1045] Access denied for user 'root'@'172.22.0.4' (using password: NO)

DB and tables are going to be created, but app container is trying to connect to his own ip.

docker-composer file: version: '2' services: phpipam-mysql: image: mysql:5.6 container_name: phpipam-mysql environment:

It looks like composer version 2 or higher is not editing /etc/hosts anymore. Maybe this is the root cause.

sbrueseke commented 6 years ago

sorry, missed the docu