chore(config): added flyway, h2, actuator, springdoc, etc. configuration to main spring profile

This commit is contained in:
ITQ
2026-04-18 14:03:37 +03:00
parent caabc59bf3
commit 482b282dd5
+61
View File
@@ -1,6 +1,67 @@
spring: spring:
application: application:
name: MovieNight name: MovieNight
lifecycle:
timeout-per-shutdown-phase: 20s
datasource:
url: ${SPRING_DATASOURCE_URL:jdbc:h2:mem:movienight;MODE=PostgreSQL;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE}
username: ${SPRING_DATASOURCE_USERNAME:sa}
password: ${SPRING_DATASOURCE_PASSWORD:}
driver-class-name: ${SPRING_DATASOURCE_DRIVER_CLASS_NAME:org.h2.Driver}
hikari:
maximum-pool-size: ${SPRING_DATASOURCE_HIKARI_MAXIMUM_POOL_SIZE:20}
minimum-idle: ${SPRING_DATASOURCE_HIKARI_MINIMUM_IDLE:5}
connection-timeout: ${SPRING_DATASOURCE_HIKARI_CONNECTION_TIMEOUT:30000}
idle-timeout: ${SPRING_DATASOURCE_HIKARI_IDLE_TIMEOUT:600000}
max-lifetime: ${SPRING_DATASOURCE_HIKARI_MAX_LIFETIME:1800000}
flyway:
enabled: ${SPRING_FLYWAY_ENABLED:true}
url: ${SPRING_FLYWAY_URL:${SPRING_DATASOURCE_URL:jdbc:h2:mem:movienight;MODE=PostgreSQL;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE}}
user: ${SPRING_FLYWAY_USER:${SPRING_DATASOURCE_USERNAME:sa}}
password: ${SPRING_FLYWAY_PASSWORD:${SPRING_DATASOURCE_PASSWORD:}}
locations: ${SPRING_FLYWAY_LOCATIONS:classpath:db/migration}
baseline-on-migrate: ${SPRING_FLYWAY_BASELINE_ON_MIGRATE:true}
h2:
console:
enabled: ${SPRING_H2_CONSOLE_ENABLED:true}
path: /h2-console
server:
shutdown: graceful
management:
endpoints:
web:
base-path: /actuator
exposure:
include: health,info,prometheus
endpoint:
health:
probes:
enabled: true
show-details: when_authorized
health:
livenessstate:
enabled: true
readinessstate:
enabled: true
info:
env:
enabled: true
springdoc:
api-docs:
path: /api/v1/docs
swagger-ui:
path: /api/v1/swagger-ui
enabled: true
show-actuator: true
info:
app:
name: ${spring.application.name}
description: MovieNight backend service
version: ${project.version:unknown}
services: services:
user: user: