Docker Container for PHP7+MySQL and PHPMyAdmin Application

preview_player
Показать описание
This video will show how to build Docker containers for PHP7 and MySQL based application. Two Docker containers will be created for PHP7 and MySQL each.

Also we will create one another container for PHPMyAdmin for UI based management of the MySQL database.

This video also describes how to bash into the container and run mysql commands.
Рекомендации по теме
Комментарии
Автор

Excellent tutorial. Thank you very much. Appreciated!

KarthikDhanabalkarthik
Автор

Hi. I have a problem. My error in php is Warning: mysqli::__construct(): (HY000/2002): Connection refused
Do you know how to solve the error?. Thanks

pablofiscella
Автор

Valuable tutorial pls is there a way to persist the database, each time I run docker-compose down and run docker-compose up -d the database is always deleted

aogunnaike
Автор

Hello sir, i fallow your blog but the db login gives error ... refused)

shubhamshirbhate
Автор

web link in description is not working.

GurpinderSingh
Автор

Thanks for posting this wonderful tutorial. I just have a question about the last line of the Dockerfile. Is it going to be different if we use "COPY www/ /var/www/html/" instead of "RUN cp ... "?

faithbaghan
Автор

I try to follow you and It works very well. I have one question.
I set up one server with three containers. (php-app port 30001:80, mysql-app and myphpadmin port 30002:80).
I would like to make one more server with different port. my means php-app-add port 30011:80, new-mysql-app-add and myphpadmin-add port 30012:80) Is it possible?
I try to do this. server-add doesn't work!

iik
Автор

Need help!!

1. Is the Dockerfile in the same folder ? "www" of your source directory?

2. I have one file index.php printing "hello world" in my www directory. Building image it says on the 5th step "lstat www/: no such file or directory". What's the issue?

zaidkazi
Автор

great sir, but can I achieve the same objective without docker-compose

creative_videos
join shbcf.ru