Skip to content

Commit

Permalink
chore: application.yml 변경
Browse files Browse the repository at this point in the history
- actuator, prometheus 설정 공통화
- 하이버네이트 로그를 위한 옵션 추가
  • Loading branch information
HyeonJun0530 committed Aug 21, 2024
1 parent 23de5aa commit 731d6fe
Showing 1 changed file with 31 additions and 30 deletions.
61 changes: 31 additions & 30 deletions backend/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,31 @@
spring:
profiles:
active: docker
include: secret, prometheus
include: secret
server:
port: 8080
# actuator, prometheus 설정
management:
endpoints:
web:
exposure:
include: "*"
endpoint:
metrics:
enabled: true
prometheus:
enabled: true
prometheus:
metrics:
export:
enabled: true
---
spring:
config:
activate:
on-profile: local
datasource:
url: jdbc:mysql://mysql:3306/twodari?useSSL=false&allowPublicKeyRetrieval=true
url: jdbc:mysql://localhost:3306/twodari?useSSL=false&allowPublicKeyRetrieval=true
username: root
password:
driver-class-name: com.mysql.cj.jdbc.Driver
Expand All @@ -22,6 +37,7 @@ spring:
hibernate:
format_sql: true
dialect: org.hibernate.dialect.MySQLDialect
generate_statistics: true
data:
redis:
host: localhost
Expand All @@ -41,18 +57,19 @@ spring:
username: ${secret-datasource.username}
password: ${secret-datasource.password}
driver-class-name: com.mysql.cj.jdbc.Driver
jpa:
jpa:
hibernate:
ddl-auto: none
show-sql: true
properties:
hibernate:
ddl-auto: none
show-sql: true
properties:
hibernate:
format_sql: true
dialect: org.hibernate.dialect.MySQLDialect
data:
redis:
host: redis
port: 6379
format_sql: true
dialect: org.hibernate.dialect.MySQLDialect
generate_statistics: true
data:
redis:
host: redis
port: 6379
logging:
level:
org.hibernate.SQL: debug
Expand All @@ -75,6 +92,7 @@ spring:
hibernate:
format_sql: true
dialect: org.hibernate.dialect.MySQLDialect
generate_statistics: true
data:
redis:
host: localhost
Expand All @@ -84,20 +102,3 @@ logging:
org.hibernate.SQL: debug
org.hibernate.type: trace
com.wootecam.festivals: debug

# actuator, prometheus 설정
management:
endpoints:
web:
exposure:
include: "*"
endpoint:
metrics:
enabled: true
prometheus:
enabled: true
prometheus:
metrics:
export:
enabled: true

0 comments on commit 731d6fe

Please sign in to comment.