From 3a9f8c61c9627612294f609058c9e4ffdc635541 Mon Sep 17 00:00:00 2001 From: Peter Siegmund Date: Mon, 30 Sep 2024 22:57:30 +0200 Subject: [PATCH] configure eureka for server/local Signed-off-by: Peter Siegmund --- src/main/resources/application-dev.yaml | 5 +++++ src/main/resources/application.yaml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/main/resources/application-dev.yaml b/src/main/resources/application-dev.yaml index ac5756a..675f6b4 100644 --- a/src/main/resources/application-dev.yaml +++ b/src/main/resources/application-dev.yaml @@ -1,2 +1,7 @@ server: port: 8090 + +eureka: + client: + service-url: + defaultZone: http://localhost:8761/eureka diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index d807e3a..ecc092e 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -1,4 +1,9 @@ eureka: + client: + register-with-eureka: true + fetch-registry: true + service-url: + defaultZone: http://eureka-service.web:8761/eureka instance: instanceId: ${spring.application.name}:${spring.application.instance_id:${random.value}}