Open hugotiburtino opened 3 years ago
You ought to be able to add the mysql-client
package stand-alone to the server into the app container, without installing the server package i.e. apt install mysql-client
This will allow your app container to talk to MySQL, without having to bring in the database itself.
That is indeed a simple and elegant solution. At the error handling there could be such suggestion.
Even though, it would be good if the command wouldn't need that external dependency.
Developing with docker-compose got the following error:
That happens because the app container does not have mysql server, which is run in another container.
Desired change:
php artisan migrate
and it works independent of the machine having mysql installed or not.