kbastani / spring-cloud-microservice-example

An example project that demonstrates an end-to-end cloud native application using Spring Cloud for building a practical microservices architecture.
http://www.kennybastani.com/2015/07/spring-cloud-docker-microservices.html
GNU General Public License v3.0
179 stars 135 forks source link

Port clash in microservices #8

Closed bas-velthuizen closed 9 years ago

bas-velthuizen commented 9 years ago

Hi,

Great microservice example.

When starting the polyglot persistence demo I noticed a port clash between the movie-microservice and the recommendation-microservice containers, both exposing port 9006 Is this intentional? Or should one f them be moved to 9005?

Kind regards, Bas Velthuizen

bas-velthuizen commented 9 years ago

OK, this had to do with my IDE leaving some directories in existence after changing to the polyglot-persistence branch. So this was not intentional and not something wrong in the example.

Thanks, Bas

bas-velthuizen commented 9 years ago

Actually, looking at the docker-compose.yml file, the recommendation-service still is mentioned, and on port 9006, the same port as the movie-microservcie. Only the docker image is not being built anymore by maven.

kbastani commented 9 years ago

Everything seems to be working now in the master branch. There was an issue with config server not being resolved from some of the other containers. See: https://github.com/kbastani/spring-cloud-microservice-example/commit/9a7d42c3106e58e521a56c70027d9d4dd3f2ea6b