-
Notifications
You must be signed in to change notification settings - Fork 1
/
formality-service.yml
74 lines (71 loc) · 1.83 KB
/
formality-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
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
server:
port: 8998
spring:
config:
activate:
on-profile: default
datasource:
url: jdbc:mysql://localhost:3306/formality?useSSL=false
username: user
password: emailsemotions
initialization-mode: ALWAYS
info:
app:
uuid: ${app_uuid}
tags:
name: ${spring.application.name}
app-id: ${info.app.uuid}
eureka:
instance:
# enable to register multiple app instances with a random server port
instance-id: ${spring.application.name}:${info.app.uuid}
# Lease Reneval and Expiration times - to unregister in eureka
leaseRenewalIntervalInSeconds: 15
leaseExpirationDurationInSeconds: 30
health-check-url-path: /actuator/health
client:
healthcheck:
enabled: true
---
spring:
config:
activate:
on-profile: mysql
datasource:
schema: classpath*:db/mysql/schema.sql
data: classpath*:db/mysql/data.sql
url: jdbc:mysql://localhost:3306/formality?useSSL=false
username: user
password: emailsemotions
initialization-mode: ALWAYS
---
spring:
config:
activate:
on-profile: docker
datasource:
url: jdbc:mysql://db-formality:3306/formality?useSSL=false
username: user
password: emailsemotions
initialization-mode: ALWAYS
# zipkin:
# baseUrl: http://tracing-server:9411
info:
app:
uuid: ${app_uuid}
tags:
name: ${spring.application.name}
app-id: ${info.app.uuid}
eureka:
instance:
# enable to register multiple app instances with a random server port
instance-id: ${spring.application.name}:${info.app.uuid}
# Lease Reneval and Expiration times - to unregister in eureka
leaseRenewalIntervalInSeconds: 15
leaseExpirationDurationInSeconds: 30
health-check-url-path: /actuator/health
client:
healthcheck:
enabled: true
serviceUrl:
defaultZone: http://discovery-server:8761/eureka/