SQLSTATE[HY000] [2002]
[Finalizado Pelo Aluno]

Ao usar o comando "php artisan migrate" tenho o erro abaixo, revisei o .env e docker-compose.yml e continua, já limpei o cache e testei a conexao com o worckbench ok, o container sobir traqnuilo inclusive com a criação do BD, pode me ajudar?
SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.tables where table_schema = webservice and table_name = migrations and table_type = 'BASE TABLE')
at vendor/laravel/framework/src/Illuminate/Database/Connection.php:712
708▕ // If an exception occurs when attempting to run a query, we'll format the error
709▕ // message to include the bindings with SQL, which will make this exception a
710▕ // lot more helpful to the developer instead of just the database's errors.
711▕ catch (Exception $e) {
➜ 712▕ throw new QueryException(
713▕ $query, $this->prepareBindings($bindings), $e
714▕ );
715▕ }
716▕ }
+36 vendor frames
37 artisan:37
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
Olá, Itamar!
Tudo bem?
Está usando este setup?
https://github.com/especializati/setup-docker-laravel/tree/laravel-9-com-php-8
Está rodando o comando dentro do container app?
docker-compose exec app bash
Seus containers estão todos up?
docker ps (print: https://pt-br.imgbb.com/)

fiz como na aula, segue link
https://ibb.co/jZShBQQ
https://ibb.co/RSnBt5S
https://ibb.co/St1xhJ0

conseguir resolver com a ajuda loa no grupo telegran

Como resolveu?

Precisa estar logado para conseguir responder a este ticket!
Clique Aqui Para Entrar!