Database and Core App Connection through Docker
Learn how to connect the Flask application to MySQL database through Docker.
We'll cover the following
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 1400+ tech skills courses.