I have Laravel application with MySQL and I\'m trying to run it in Docker using docker-compose. But when app trying to connect DB, it throws:
PDOException
You can change DB_HOST localhost to ip in .env. To receive ip mysql docker container need write command:
docker exec -it ip add show eth0