application.yaml 1.72 KB
Newer Older
1
2
3
4
logging.config: classpath:common/logback-spring.xml

spring:
  profiles:
5
    active: ${ENV_GLOBAL_PROFILES:local},${ENV_APP_PROFILES:app}
6
7
  datasource:
    driverClassName: org.postgresql.Driver
Raigo Ukkivi's avatar
Raigo Ukkivi committed
8
    url: jdbc:postgresql://${DB_HOST}:5432/officials_service
9
10
    username: ${DB_APP_USERNAME}
    password: ${DB_APP_PASSWORD}
11
    initialization-mode: never
12
    hikari:
13
      maximum-pool-size: 10
14
15
16
17
  liquibase:
    change-log: classpath:/db/changelog/db.changelog-master.xml
    user: ${DB_OWNER_USERNAME}
    password: ${DB_OWNER_PASSWORD}
18
    contexts: ${ENV_GLOBAL_PROFILES:local}
19
    parameters:
20
      db_app_username: ${DB_APP_USERNAME:teis}
21
22
23
24
25
26
27
28
29
30
31
32
33
34
  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:
35
36
37
38
        prefetch: ${RABBIT_LISTENER_PREFETCH:25}
        concurrency: ${RABBIT_LISTENER_MIN_CONCURRENCY:5}
        max-concurrency: ${RABBIT_LISTENER_MAX_CONCURRENCY:50}

39
40
41
42
43
44
45
46
47
management:
  endpoint:
    restart.enabled: true
    health:
      enabled: true
      show-details: always
    info.enabled: true

teis:
48
49
  system:
    name: officials-service
Ivar Meikas's avatar
Ivar Meikas committed
50
51
  test:
    data:
52
      resetmagic: ${TEST_DATA_RESET_MAGIC:}
53
54
  rabbit:
    gw-exchange-name: gw_exchange
55
    gw-exchange-reply-timeout: ${RABBIT_TEMPLATE_GW_EXCHANGE_REPLY_TIMEOUT:6000}
56
    ms-exchange-name: ms_exchange
57
    ms-exchange-reply-timeout: ${RABBIT_TEMPLATE_MS_EXCHANGE_REPLY_TIMEOUT:5000}
Ivar Meikas's avatar
Ivar Meikas committed
58
    cs-exchange-name: cache_exchange
59
    od-exchange-name: od-disabled
60
  cache: classifierItems, classifierDefinitions