Hi currently I’m playing around with docker and have sort of an understanding issue.
I have a web application which would basically need two containers one for tomcat and one for postgresql. As far as I understand I could either link them directly together or expose the ports so they could talk to each other right?
Now the most of the existing docker containers expose the standard port to the host (like official postgresql image). That would be fine if I only run one instance of my application on the host.
But I want to run multiple versions of my applications on my host system.
As far as I understand that would not work if I’m using images that already EXPOSEs the default ports. Is that right or do I have an understanding issue here?
So I would have to create my own images and use the link functionality to achieve this?
Basically I want to provide a server where a developer can startup easily a new instance of our web application to test something or present a demo.