| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This is the source code for the blog post
https://exampledriven.wordpress.com/2016/06/24/spring-boot-docker-example/
Features :
How to run this example :
## build docker images
mvn clean install
##should display three freshly built docker images
docker images
##start up all instances
docker-compose up
##starts a 2nd instance of echo-service
docker-compose scale echo-service=2##Starting multiple echo services
docker-compose scale echo-service=3
##Replace a running container with the latest version (during development)
mvn install
docker-compose stop echo-service
docker-compose up -d echo-serviceOnce all the services are up, the following URLs will be available
| Address | Description |
|---|---|
| http://<<docker-host>>:8761 | Eureka service. |
| http://<<docker-host>>:9090/routes | Zuul route definitions |
| http://<<docker-host>>:9090/api/echo-service/echo | Echo service through Zuul api gateway, looked up from Eureka registry |
| http://<<docker-host>>:9090/api/echo-service/echo/remote-echo | Echo service calling remote echo services |
| http://<<docker-host>>:9090/api/echo-service-by-dns/echo/remote-echo | Echo service through Zuul api gateway, located by DNS entry http://echo-service:9098 |
| Back | FazBrowse Home | New Git URL |