about

A eureka server and two service service01 and service02 registering to it. Service02 is using service discovery loadbalancer to connect to service01

usage

direct run

run in separate windows

./gradlew eureka-server:bootRun
SERVER_PORT=8083 ./gradlew service01:bootRun
./gradlew service01:bootRun
./gradlew service02:bootRun

docker compose

./gradlew composeUp