Created
November 3, 2022 12:36
-
-
Save mafei-dev/c066690da496404f761e7fce438450b0 to your computer and use it in GitHub Desktop.
new-order-service-application.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zone-id: ${ZONE_ID:southern} | |
gateway-host: ${API_HOST:localhost:8080} | |
instance-id: ${HOSTNAME:${random.uuid}} | |
#all external server names | |
services: | |
url: | |
delivery-service: delivery-service | |
payment-service: payment-service | |
user-service: user-service | |
server: | |
port: 3293 | |
#eureka-config | |
spring: | |
application: | |
name: order-service | |
datasource: | |
driver-class-name: com.mysql.cj.jdbc.Driver | |
username: ${SPRING_DATASOURCE_USERNAME:root} | |
password: ${SPRING_DATASOURCE_PASSWORD:mafei} | |
url: ${SPRING_DATASOURCE_URL:jdbc:mysql://localhost:3306/order-service-db?createDatabaseIfNotExist=true} | |
jpa: | |
hibernate: | |
ddl-auto: update | |
#logging-config | |
logging: | |
level: | |
org: | |
mono: debug | |
#eureka-config | |
eureka: | |
instance: | |
prefer-ip-address: true | |
instance-id: ${spring.application.name}:${instance-id} | |
metadata-map: | |
fileSystemZone: ${FILE_SYSTEM_ZONE:US-NORTH} | |
instanceZone: ${zone-id} | |
timestamp: ${APP_STARTED_AT} | |
client: | |
service-url: | |
defaultZone: ${EUREKA_URI:http://localhost:8761/eureka} | |
instance-info-replication-interval-seconds: 30 | |
#stack-saga-config | |
stacksaga: | |
aggregator: | |
print-summary: | |
org.mono.stacksaga.example.orderservice.aggregator.PlaceOrderAggregator: true | |
org.mono.stacksaga.example.orderservice.aggregator.PlaceBookingAggregator: false | |
executor: | |
executor-retry-config: | |
SAGA-PBExecutor1: | |
hours: 13 | |
SAGA-POBBeforeIncrease2Executor: | |
hours: 88 | |
connect: | |
admin-url: http://localhost:4444 | |
admin-username: default-order-service-user | |
admin-password: yBWO9Zj4otCalkhS | |
enable: true | |
cloud: | |
discovery: SPRING_CLOUD_DISCOVERY | |
file-collector-cron: "*/60 * * * * *" | |
transaction-replay-cron: "*/60 * * * * *" | |
client: | |
zone-id: ${zone-id} | |
binary-file-system: MULTIPLE_NODE_SYSTEM | |
binary-file-path: ${STACKSAGA_BINARY_FILE_PATH:C:\\Users\\kalha\\Documents\\tmp\\file-w} | |
replay-bulk-size: 1000 | |
instance: | |
instance-id: ${instance-id} | |
datasource: | |
mysql: | |
jdbc-url: ${STACKSAGA_JDBC_URL:jdbc:mysql://localhost:3306/stacksaga_event_store?createDatabaseIfNotExist=true} | |
username: ${STACKSAGA_USERNAME:root} | |
password: ${STACKSAGA_JDBC_PASSWORD:mafei} | |
ddl-auto: ${STACKSAGA_JDBC_DDL_AUTO:create} | |
driver-class-name: ${STACKSAGA_JDBC_DRIVER_CLASS_NAME:com.mysql.cj.jdbc.Driver} | |
component-scan: | |
- org.mono.stacksaga.example.orderservice | |
transaction-id-prefix: order-service | |
app-release-version: 1.0.3 | |
health: | |
healthUpdate: 60000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment