Database and Core App Connection through Docker

Learn how to connect the Flask application to MySQL database through Docker.

Adding the database to the docker-compose.yml file

To connect our Core app to the database, we must add the MySQL database as a service in the docker-compose.yml file, as shown below:

Get hands-on with 1200+ tech skills courses.