Я пытался перенести новую таблицу с моими контейнерами, но команда php artisan migrate возвращает мне это:

Doctrine\DBAL\Driver\PDOException  : SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known

  at /home/andrzej/Projects/test/kredytofer-developers/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:31
    27|             parent::__construct($dsn, $user, $password, $options);
    28|             $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [PDOStatement::class, []]);
    29|             $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
    30|         } catch (\PDOException $exception) {
  > 31|             throw new PDOException($exception);
    32|         }
    33|     }
    34| 
    35|     /**

  Exception trace:

  1   PDOException::("PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known")
      /home/andrzej/Projects/test/kredytofer-developers/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27

  2   PDO::__construct("mysql:host=mysql;port=3306;dbname=gierka", "gierkuje", "haslo", [])
      /home/andrzej/Projects/test/kredytofer-developers/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27

Мой файл .env выглядит так:

APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:LouUzXUhqc3llc/BSXKbPGEZpaLkh+jQ2w0+iU/wXhM=
APP_DEBUG=true
APP_URL=http://localhost

LOG_CHANNEL=stack

DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=gierka
DB_USERNAME=gierkuje
DB_PASSWORD=haslo

BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1

MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

0