Easily Setup PHP and MySQL Using Docker

Опубликовано: 29 Сентябрь 2024
на канале: Ceed Media
4,577
70

In this video, i will show you how to easily setup php and mysql using a docker container. You can download the complete docker file from my github page:

https://github.com/chidiesobe/php-mys...

NB: while running the script below if you are on a windows computer you can directly replace PWD with the direct path of your directory, as PWD in mac and linux will simply return the current directory path.

$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp php:7.4-cli php your-script.php