-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbook-service.yaml
80 lines (78 loc) · 2.27 KB
/
book-service.yaml
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
75
76
77
78
79
80
# application.yml
server:
port: 8787
spring:
application:
name: book-service
# cloud:
# consul:
# host: consul
# port: 8500
# discovery:
# enabled: true # Enable service discovery
# service-name: book-service # Optional: Custom service name
# health-check-url: http://book-service:8787/actuator/health
# # instance-id: ${spring.application.name}:${random.value}:${server.port}
# instance-id: book-service:8787
# prefer-ip-address: false
# register: true
# # instanceId: ${spring.application.name}:${spring.cloud.client.hostname}:${server.port}
# instanceId: ${spring.application.name}:${server.port}
# healthCheckUrl: http://book-service:8787/actuator/health # URL for health check
# healthCheckInterval: 15s # Interval for health check
# preferIpAddress: false # Use service name instead of IP address
#mongo
data:
mongodb:
uri: mongodb://mongo:27017/image_books
username: mongodb
password: admin
profiles:
active: dev
servlet:
multipart:
max-file-size: 2000MB
max-request-size: 2000MB
main:
allow-bean-definition-overriding: true
datasource:
url: jdbc:postgresql://postgres:5432/books
username: postgres
password: postgres
driver: org.postgresql.Driver
jpa:
properties:
hibernate:
show_sql: true
hbm2ddl.auto: update
cache:
caches:
-name: booksCache
use_second_level_cache: true
region:
factory_class: com.hazelcast.hibernate.HazelcastCacheRegionFactory
# kafka
kafka:
bootstrap-servers: kafka1:29092
producer:
key-serializer: org.apache.kafka.common.serialization.StringSerializer
value-serializer: org.apache.kafka.common.serialization.StringSerializer
# liquibase.properties
liquibase:
change-log: classpath:/db/changelog/db.changelog-master.yaml
contexts: development, production
default-schema: book
# logging
management:
endpoints:
web:
exposure:
include: health
logging:
level:
org.apache.kafka: debug
org.springframework.data.mongodb.core: debug
hibernate: debug
springframework:
cache: debug
# org.springframework.cloud.consul: DEBUG