paulc4 / microservices-demo

Demo application to go with Blog on spring.io
889 stars 830 forks source link

Provide support for running the demo in Docker Compose #1

Open damianoneill opened 8 years ago

damianoneill commented 8 years ago

Hi Paul, find attached a pull req for offering deployment through docker-compose. I've tested this on OSX / Docker Toolbox only.

I had a look at updating the Web Server page (index.html) as the urls for the Eureka Dashboard and Client applications registered wont work in this config as localhost isnt valid within the docker linked vm.

I'm not familiar with Thymeleaf so dont know how to change the link url's to use the running IP rather than 'localhost'. I.e.

  • Eureka Dashboard: http://localhost:1111
  • To

  • Eureka Dashboard: http://localhost:1111
  • Hope this is useful. Damian.

    paulc4 commented 8 years ago

    Much thanks for this. I'd like to do a separate blog on deployment and my original intention was to describe using our Cloud Foundry PaaS, but adding Docker would be excellent too. I'm a bit swamped with other things at the moment, but I will look at this when I get a chance.