-
Notifications
You must be signed in to change notification settings - Fork 1
/
application.yml
60 lines (51 loc) · 1.66 KB
/
application.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# GLOBAL CONFIGURATION
spring:
# if you want to set a different profile
# use environment variable:
#
# SPRING_PROFILES_ACTIVE=docker
profiles.active: local
application.name: ServiceA
eureka:
instance:
# send ip addresses to the discovery. this is
# important for client side load balancing
preferIpAddress: true
# push heartbeat every 10 seconds to the registry
leaseRenewalIntervalInSeconds: 10
# Message channel configuration
spring.cloud.stream.bindings:
# all configurations for the 'fooEvent' channel
fooEvent:
contentType: application/*+avro
# all configurations for the 'barEvent' channel
barEvent:
contentType: application/*+avro
---
# DOCKER CONFIGURATION
spring:
profiles: docker
# inside a container, we can always map to 8080. Use your compose
# file to expose a service on a different port.
server.port: 8080
# the hostname of your eureka server should be 'discovery'
eureka.client.serviceUrl.defaultZone: http://discovery:8761/eureka/
---
# LOCAL CONFIGURATION
spring:
profiles: local
# rabbitmq:
# addresses: 192.168.29.130
# cloud:
# stream.rabbit.binder.adminAddresses: 192.168.29.130
# random server port to avoid port
# conflicts on localhost
server.port: 0
eureka:
client:
# in local mode you have to run your service
# discovery on localhost (you also can run the
# cloud infrastructure on your local docker host)
serviceUrl.defaultZone: http://localhost:8761/eureka/
# fetch all 5 seconds the delta from the service registry
registry-fetch-interval-seconds: 10