This repository contains multiple microservices and spring cloud tools. General details are given below. Refer individual README markdowns for details.
Application | Port |
---|---|
Limits Service | 8080, 8081, ... |
Spring Cloud Config Server | 8888 |
Currency Exchange Service | 8000, 8001, 8002, .. |
Currency Conversion Service | 8100, 8101, 8102, ... |
Netflix Eureka Naming Server | 8761 |
Netflix Zuul API Gateway Server | 8765 |
Zipkin Distributed Tracing Server | 9411 |
- Setup
Zipkin Distributed Tracing Server
usingdocker run -p 9411:9411 openzipkin/zipkin:latest
. - A docker plugin has been added in pom.xml of each microservice. Use
mvn spring-boot:build-image -DskipTests
to build the images for all of them. - Post build use
docker run -p <port>:<port> od/ms-<project.artifactId>:<project.version>
to run the containers. - Example,
docker run -p 8000:8000 od/ms-currency-exchange-service:0.0.1-SNAPSHOT
and then go to http://localhost:8000/currency-exchange/from/USD/to/INR. - Using
docker run
for all the services before starting development locally takes a lot of time. - Use Docker Compose to run several containers as services in one go. Refer
docker-compose.yaml
. - Last step is to do a
docker-compose up
.