I’m new to Docker and really working hard to further my understanding of how all this is supposed to work. I have an existing application that I have successfully “containerized”. I have it working within a Docker container and it is great. My issue comes with scaling it. I stood up a 2nd docker host, deployed my application, but everything I’m doing is based on publishing ports on the Docker Host itself using Docker run -p.
Is there someway to link my containers together across multiple Docker hosts? All the documentation about linking that I have been able to find makes the assumption that there is just one Docker host. Does that makes sense? Preferably, I would like to be able to do this without using Docker Machine/Compose if possible. Is it possible?
Thank you so much for any insights offered.