I run my PHP MVC Framework with MySql Using Docker
Merci à Cyril T. pour sa contribution le 08/02/2022
Docker is an amazing tool for containerization. It can be used to easily run your application with desired versions and desired services.
In this video I will take my PHP MVC Framework which I built before on this channel
and run it with docker.
🐳 Setup fully functional Docker environment on Windows
https://youtu.be/2ezNqqaSjq8
See how I build PHP MVC Framework
🎬 Videos 🎬 - https://bit.ly/3B0MH9y
⭐️ Source Code ⭐️ - https://bit.ly/3B1oYpZ
Table of Contents
----------------------------
00:00 - Intro & Overview
01:17 - Create Dockerfile
02:58 - Create Apache virtual host file
03:34 - Create composer installer
05:23 - Create php.ini
06:07 - Build an image with Dockerfile
07:02 - Run docker image
08:35 - Run commands in container
09:23 - Test php.ini configuration
09:50 - Create docker-compose.yml
12:03 - Stop container
12:28 - Start container stack
14:15 - Execute command using docker-compose
15:15 - Run migrations in container
15:39 - Connect to the database with MySql client
16:44 - Create MySql config file
17:54 - Bind mysql-data volume to avoid data lost
20:25 - The End
Support me by subscribing - https://bit.ly/2xTQOI0
Follow me on social media:
https://twitter.com/thecodeholic
https://www.facebook.com/thecodeholic
https://www.instagram.com/thecodeholic/
Check my Github:
https://github.com/thecodeholic
In this video I will take my PHP MVC Framework which I built before on this channel
and run it with docker.
🐳 Setup fully functional Docker environment on Windows
https://youtu.be/2ezNqqaSjq8
See how I build PHP MVC Framework
🎬 Videos 🎬 - https://bit.ly/3B0MH9y
⭐️ Source Code ⭐️ - https://bit.ly/3B1oYpZ
Table of Contents
----------------------------
00:00 - Intro & Overview
01:17 - Create Dockerfile
02:58 - Create Apache virtual host file
03:34 - Create composer installer
05:23 - Create php.ini
06:07 - Build an image with Dockerfile
07:02 - Run docker image
08:35 - Run commands in container
09:23 - Test php.ini configuration
09:50 - Create docker-compose.yml
12:03 - Stop container
12:28 - Start container stack
14:15 - Execute command using docker-compose
15:15 - Run migrations in container
15:39 - Connect to the database with MySql client
16:44 - Create MySql config file
17:54 - Bind mysql-data volume to avoid data lost
20:25 - The End
Support me by subscribing - https://bit.ly/2xTQOI0
Follow me on social media:
https://twitter.com/thecodeholic
https://www.facebook.com/thecodeholic
https://www.instagram.com/thecodeholic/
Check my Github:
https://github.com/thecodeholic