Files
ERP/oa-backend/src/main/resources/application-postgres.yml
T

30 lines
881 B
YAML

# Production PostgreSQL profile. Activate with SPRING_PROFILES_ACTIVE=postgres.
# Credentials are intentionally supplied by the installer/runtime environment.
spring:
datasource:
url: ${OA_DB_URL}
driver-class-name: org.postgresql.Driver
username: ${OA_DB_USERNAME}
password: ${OA_DB_PASSWORD}
hikari:
maximum-pool-size: ${OA_DB_POOL_MAX:20}
minimum-idle: ${OA_DB_POOL_MIN:2}
connection-timeout: 10000
validation-timeout: 5000
jpa:
hibernate:
ddl-auto: validate
database-platform: org.hibernate.dialect.PostgreSQLDialect
open-in-view: false
show-sql: false
properties:
hibernate:
dialect: org.hibernate.dialect.PostgreSQLDialect
flyway:
enabled: true
locations: classpath:db/migration/postgresql
clean-disabled: true
validate-on-migrate: true
baseline-on-migrate: false