FAIR4Health Service Discovery to register and discover PPDDM Agents in Consul:
- [POST] /discovery/register
- [GET] /discovery/discover
- Java 8+
- Maven for Java dependency management
- Spring Boot
- Spring Cloud Consul
- Lombok for the models
- Service registry and discovery
- Metadata using K/V Storage
Compile and package the project with
mvn clean package
and execute
java -jar target/service-discovery.war
It can also be run as:
mvn spring-boot:run
CONSUL_HOST=
CONSUL_PORT=
LOGGING_FOLDER=
LOGGING_MODE=
Build the image:
docker build -t fair4health/service-discovery .
Simple deployment:
docker run --name discovery -d fair4health/service-discovery
Logging can be also configured using LOGGING_FOLDER
and sharing a volume (this is useful for example for ELK processing). The level of the logging can be configured with LOGGING_MODE
(dev|prod):
docker run --name gateway -d -v /tmp/log/service-discovery:/log/service-discovery -e LOGGING_FOLDER=/log/service-discovery -e LOGGING_MODE=dev fair4health/service-discovery
Apache 2.0
By downloading this software, the downloader agrees with the specified terms and conditions of the License Agreement and the particularities of the license provided.