application.yaml 1.87 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
logging.config: classpath:common/logback-spring.xml

#FIXME: In production profile remove console
camunda:
  bpm:
    webapp:
      index-redirect-enabled: true
    admin-user:
      id: kermit
      password: superSecret
    job-execution:
      max-wait: 1000
      wait-time-in-millis: 50
14 15 16 17
    database:
      schema-update: false
      schema-name: camunda
      table-prefix: camunda.
18 19 20

spring:
  profiles:
21
    active: ${ENV_GLOBAL_PROFILES:local},${ENV_APP_PROFILES:app}
22 23
  datasource:
    driverClassName: org.postgresql.Driver
Raigo Ukkivi's avatar
Raigo Ukkivi committed
24
    url: jdbc:postgresql://${DB_HOST}:5432/officials_service
25 26
    username: ${DB_APP_USERNAME}
    password: ${DB_APP_PASSWORD}
27
    initialization-mode: never
28
    hikari:
29
      maximum-pool-size: 10
30 31 32 33
  liquibase:
    change-log: classpath:/db/changelog/db.changelog-master.xml
    user: ${DB_OWNER_USERNAME}
    password: ${DB_OWNER_PASSWORD}
34
    contexts: ${ENV_GLOBAL_PROFILES:local}
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
  jpa:
    database-platform: org.hibernate.dialect.PostgreSQL82Dialect
    properties:
      hibernate:
        jdbc:
          lob:
            non_contextual_creation: true
  rabbitmq:
    host: ${RABBIT_HOST:localhost}
    port: ${RABBIT_PORT:5672}
    username: ${RABBIT_USER:guest}
    password: ${RABBIT_PASSWORD:guest}
    listener:
      simple:
        prefetch: 25
        concurrency: 5
        max-concurrency: 50
  cloud:
    kubernetes:
      reload:
        enabled: false
        mode: polling
        period: 1000
      config:
        enabled: false
        #paths: /config
management:
  endpoint:
    restart.enabled: true
    health:
      enabled: true
      show-details: always
    info.enabled: true

teis:
Ivar Meikas's avatar
Ivar Meikas committed
70 71
  test:
    data:
72
      resetmagic: ${TEST_DATA_RESET_MAGIC:}
73 74
  system:
    name: officials-service
75 76 77
  rabbit:
    gw-exchange-name: gw_exchange
    ms-exchange-name: ms_exchange
Ivar Meikas's avatar
Ivar Meikas committed
78
    cs-exchange-name: cache_exchange
79
  cache: classifierItems, classifierDefinitions