“ None of the database guides I followed had warned me about the dangers of exposing a docker containerized database to the internet.”
Unless you want it publicly available and expect people to try and illegitimately access it, never expose it to the internet.