implement eureka

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2024-09-30 22:39:28 +02:00
parent 73275fe3e4
commit a2aa347a4d
3 changed files with 26 additions and 0 deletions

View File

@@ -1,2 +1,9 @@
server:
port: 8085
eureka:
client:
service-url:
defaultZone: http://localhost:8761/eureka
instance:
instanceId: ${spring.application.name}:${spring.application.instance_id:${random.value}}

View File

@@ -15,3 +15,10 @@ server:
spring:
application:
name: timezone-service
eureka:
client:
register-with-eureka: true
fetch-registry: true
service-url:
defaultZone: http://eureka-service.web:8761/eureka