configure eureka for server/local

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2024-09-30 22:57:30 +02:00
parent 3cdfc2d4b9
commit 3a9f8c61c9
2 changed files with 10 additions and 0 deletions

View File

@@ -1,2 +1,7 @@
server:
port: 8090
eureka:
client:
service-url:
defaultZone: http://localhost:8761/eureka

View File

@@ -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}}