sfx101 / deck

DECK is a powerful and high performant local web development studio, an open source alternative to Docker desktop
https://github.com/deck-app
GNU Affero General Public License v3.0
1.51k stars 71 forks source link

Laravel Development Container does not include any database installations #59

Closed Kyzegs closed 2 years ago

Kyzegs commented 2 years ago

The Laravel Development Container allows you to pick from a variety of PHP extensions, including database drivers. So why is it that we cannot install a database itself? We should be able to pick a database installation to go alongside our application.

Subhajit9836 commented 2 years ago

Hi @Kyzegs

We decided to not attach the databases with Laravel Dev Container as it'll trim down the size of the image DECK is requesting. Everyone doesn't use databases with Laravel and we didn't want to limit the users to one type of database management system. We have various database images like MySQL, MongoDB, or Oracle in DECK. One can install any of them and connect to Laravel when required. Thanks!

Kyzegs commented 2 years ago

I've tried connecting to the database with the given information. It always results in the following error:

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known

I've tried with the following provided information:

image

nabad600 commented 2 years ago

Hi @Kyzegs,

image

Mysql Container

image

.env file for laravel container

image

After configure .env nd run command "php artisan migrate", it's connection successfully.

image

After connection successfully check phpmyadmin.