I am a newbie to docker, I wanted to run a Java web application which takes name and mail and stores it in a MySQL dB now my doubt is how can I use a MySQL image and where I need to mention dB config in my app and how to make these app and dB container to run on tomcat server .is it possible to upload this entire image in docker hub to run on another host which pulls this image and can run this app successfully ..
I want to dockerize my name and mail application so that I can convert into an image so that any host can pull that image and run the app without any dependencies