One MySQL Docker Container for Multiple Docker Apps!

preview_player
Показать описание
Create an internal network so Docker containers can communicate without exposing ports on your host machine. In this video I show you the current "best practice" for getting Docker containers to talk to each other behind the scenes.

Generally, we love that containers don't interfere with each other, but we also don't want to include an entire MySQL server inside every app we create. Using this method, we can have a single MySQL instance running in a container, and use it for all our other containers.

0:00 Why Share a Database Container?
0:45 How Docker Creates Networks
2:35 Creating a Network and Containers
5:46 Wrap Up and Next Steps
Рекомендации по теме
Комментарии
Автор

Dude, you're the best, thank you very much for sharing, greetings from Brazil.

marcelodheni
Автор

Omg. Free container trainings? Wow! Thanks!!

James-ixcb
Автор

holy sweet smoking fire, wth it was so simple, thanks

monishm
Автор

Thanks for sharing this helpful video!! it's 2022 now, what is current best practice now for mysql connections in docker, You have also mentioned about creating volumes for data backup!! Is there any video for that!!

bluehorses
Автор

Thank you for sharing tips sir. Im going to implement this ::)

vikramkumar
Автор

I check and nothing: Incorrect DB config, or could not connect to DB
PDOException: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution

javadev-
Автор

Hello Shawn, just found your video, I`m trying to install NGINX Proxy + Wordpress + NextCloud on my NUC and unfortunately I`m just copy/paste Linux user and have zero experience with mySQL. I have killed 5 days already trying to install all 3 containers and every time I either get Wordpress database error or won`t be able to log in to NGNIX etc..


wanted to ask if you have time what would be the new method using the mySQL bridge method you are explaining in your video.

Perhaps creating video showing how to install multiple containers using Portainer for users like me could be usefull to many.

cheers.

Vendoization
Автор

Hi I dont not why this not found for my

javadev-