lorisleiva / laravel-docker

🐳 Generic docker image for Laravel Applications
MIT License
927 stars 312 forks source link

Does the container have mariadb or mysql included? #91

Closed victorelec14 closed 2 years ago

victorelec14 commented 2 years ago

hello,

I try to use the container with a Laravel installation but when I try to connect to the Mariadb database I have this problem. Does the container include a database server?

thanks

mysql --version
mysql  Ver 15.1 Distrib 10.5.12-MariaDB, for Linux (x86_64) using readline 5.1
mysql -u root
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2)
ksassnowski commented 2 years ago

Only the mysql-client is included.

lorisleiva commented 2 years ago

Hey 👋 Since this Dockerfile is mostly used for CI/CD, I recommend using services if you need to spin up a MySQL server.