View Single Post
  #2  
Old 01-27-2022, 07:18 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,071
Default

Quote:
Originally Posted by Freejack View Post
Started to play around with this and realized something. Why is 3306 exposed outside the container if there is no connections from the outside to the database?

It just hit me because I use docker and containers and this is the first that has the db exposed to the outside when all that needs access is inside the container.

Wouldn't best security practice be even in a dev environment to not expose the port outside the container?

If anyone knows why, I was just thinking and wondering.
Whether you choose to expose the port or not is up to your discretion and choosing as is any other installation.

Lots of folks like to connect to their MySQL instance via browser remotely or connect to web tooling without a ton of fuss.
Reply With Quote