init
This commit is contained in:
34
src/main/resources/application.yaml
Normal file
34
src/main/resources/application.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
server:
|
||||
port: 8010
|
||||
spring:
|
||||
application:
|
||||
name: app
|
||||
|
||||
# ??????????? ??????????? ? ???? ??????
|
||||
datasource:
|
||||
url: jdbc:postgresql://postgres.my-spring-app-6b948f469d-gdw6q.svc.cluster.local:5432/app_db
|
||||
username: postgres
|
||||
password: postgres
|
||||
driver-class-name: org.postgresql.Driver
|
||||
|
||||
# ????????? JPA
|
||||
jpa:
|
||||
hibernate:
|
||||
# ????????????? ???????/????????? ????? ???? ?????? (????? ?? ???????????? ? ?????)
|
||||
ddl-auto: validate # ????????: none, validate, update, create, create-drop
|
||||
# ???????? ??????????? SQL-???????? (???????????)
|
||||
show-sql: true
|
||||
# ?????????????? SQL ? ?????
|
||||
properties:
|
||||
hibernate:
|
||||
format_sql: true
|
||||
database: postgresql
|
||||
database-platform: org.hibernate.dialect.PostgreSQLDialect
|
||||
|
||||
# ????????? Flyway
|
||||
flyway:
|
||||
enabled: true
|
||||
# ???? ? ????????? (?? ?????????: classpath:db/migration)
|
||||
locations: classpath:db/migration
|
||||
# ????????? ???????? ??? ?????? ??????????
|
||||
baseline-on-migrate: true
|
||||
Reference in New Issue
Block a user