Connecting to MySQL/MariaDB from Dockerized Symfony application



Connecting to MySQL/MariaDB from Dockerized Symfony application

Connecting to MySQL/MariaDB from Dockerized Symfony application

Also you can read full article on blog here: http://birkof.com/blog/connect-mysql-from-dockerized-symfony_5

In this topic I’ve touched question of connecting from Dockerized Symfony application to MySQL or MariaDB database server located on local machine.

I’ve used external host configuration of docker-compose.yaml file and “dockerhost” became “new localhost” for container. Connection string is configured in .env of Symfony configuration file.
See more in video, like and subscribe!

If you have questions or you have a topic for me to prepare video – leave a comment, will be done 🙂

Comments are closed.