Hi I am wanting to startup a development environment with the docker-compose.yml. I can create all the containers without an issue. But I cannot migrate the database with php artisan migrate i get this error:
Predis\Connection\ConnectionException
php_network_getaddresses: getaddrinfo for redis failed: Temporary failure in name resolution [tcp://redis:6379]
at vendor/predis/predis/src/Connection/AbstractConnection.php:144
I noticed that "redis" in "[tcp://redis:6379]" is from the .env REDIS_HOST=redis. I tried exposing the redis port from the docker and changed "redis" to "localhost". I then got this error:
Illuminate\Database\QueryException
could not find driver (SQL: select * from information_schema.tables where table_catalog = default and table_schema = public and table_name = model_fields_metadata and table_type = 'BASE TABLE')
at vendor/laravel/framework/src/Illuminate/Database/Connection.php:760
I assume I am doing something wrong if the docker isnt working properly. How does one start up a project with docker compose?
Hi I am wanting to startup a development environment with the docker-compose.yml. I can create all the containers without an issue. But I cannot migrate the database with
php artisan migrate
i get this error:I noticed that "redis" in "[tcp://redis:6379]" is from the .env
REDIS_HOST=redis
. I tried exposing the redis port from the docker and changed "redis" to "localhost". I then got this error:I assume I am doing something wrong if the docker isnt working properly. How does one start up a project with docker compose?