Build the eureka server image:
cd eureka-server
./mvnw clean install
docker build -t eureka-server .
cd ..
Available on localhost:8761.
Build the alice service image:
cd service-alice
docker build -t service-alice .
cd ..
Build the bob service image:
cd service-bob
docker build -t service-bob .
cd ..
Build the sidecar image:
cd eureka-sidecar
docker build -t eureka-sidecar .
cd ..
Run everything with
docker-compose up -d
Stop everything with
docker-compose down
Check running services with:
docker-compose ps
Available on localhost:8001:
/hello world/health(needed for eureka sidecar service registration)/call-bob(uses service discovery)
Available on localhost:8002:
/hello world/health(needed for eureka sidecar service registration)/call-alice(uses service discovery)