-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccounts-service.yml
33 lines (29 loc) · 980 Bytes
/
accounts-service.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
spring:
application:
name: accounts-service
output:
ansi:
enabled: ALWAYS
h2:
console:
enabled: true
# Service Discovery access
eureka:
client:
serviceUrl:
defaultZone: http://localhost:1111/eureka
# The microservice instance attempts to register its presence with Eureka before this port assignment,
# resulting in a registration using the local IP address and a port number of zero (0), as does every subsequent
# instance of that microservice. This effectively restricts us to running a single instance of any local microservice
# we wish to register with a local Eureka instance.
# As a fix - we assign a unique instance-id, dynamically, to each of the instances for use by Eureka.
instance:
instance-id: ${spring.application.name}:${spring.application.instance_id:${random.value}}
# HTTP Server
server:
port: ${PORT:0}
management:
endpoints:
web:
exposure:
include: "*"