application.yaml 1.21 KB
server:
  port: 8000

spring:
  application:
    name: project-user
  cloud:
    nacos:
      discovery:
        server-addr: nacos-server:8848
        group: project
      config:
        server-addr: nacos-server:8848
        group: project
        file-extension: yaml
  config:
    import:
      - optional:nacos:project-user.yaml?group=project&refreshEnabled=true
      - optional:nacos:datasource-config.yaml?group=project&refreshEnabled=true
      - optional:nacos:redis-config.yaml?group=project&refreshEnabled=true
  main:
    allow-bean-definition-overriding: true
  datasource:
    url: jdbc:postgresql://project-pg:8432/project
    driver-class-name: org.postgresql.Driver
    username: 'postgres'
    password: 'postgres'
  redis:
    database: 0
    host: redis
    port: 6379
    password: 123456
    jedis:
      pool:
        max-active: 32
        min-idle: 0
        max-idle: 8
        max-wait: -1
  kafka:
    bootstrap-servers: http://kafka:9092
    consumer:
      group-id: mpGroup


      
seata:
  application-id: ${spring.application.name}
  tx-service-group: ${spring.application.name}-group
  service:
    vgroup-mapping:
      project-user-group: default
    grouplist:
      default: seata-server:8091