This project demos the use of consul and feign in a Spring Boot Gradle project.
This is one of the two services for a complete demo.
Java 11 is required.
gradlew clean build unpack
docker build --rm -t consul-external .
Service consul-internal needs to be running for this service to function properly.
docker-compose up -d --no-deps --build consul-external
docker-compose stop
gradlew clean build publishToMavenLocal
docker pull consul
docker run \
-d \
-p 8500:8500 \
-p 8600:8600/udp \
--name=consul \
consul agent -dev -ui -node=consul -bootstrap-expect=1 -client=0.0.0.0
consul agent -dev -node consul