Skip to content

Commit c6b462d

Browse files
committed
feat: RDS 적용
1 parent 3d740c4 commit c6b462d

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,7 @@ services:
2323
EMAIL_USERNAME: ${EMAIL_USERNAME}
2424
DOCKER_USERNAME: ${DOCKER_USERNAME}
2525
DOCKER_PASSWORD: ${DOCKER_PASSWORD}
26+
DB_ENDPOINT: ${DB_ENDPOINT}
27+
DB_NAME: ${DB_NAME}
28+
DB_PASSWORD: ${DB_PASSWORD}
2629
restart: always # 컨테이너가 중단되었을 때 재시작 설정

src/main/resources/application-dev.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
spring:
2-
32
datasource:
4-
driver-class-name: org.h2.Driver
5-
url: jdbc:h2:mem:testdb
6-
username: sa
7-
password: password
3+
driver-class-name: com.mysql.cj.jdbc.Driver
4+
url: jdbc:mysql://${DB_ENDPOINT}/${DB_NAME}?useSSL=false&serverTimezone=UTC
5+
username: playhive
6+
password: ${DB_PASSWORD}
87

98

109
jpa:
11-
show-sql: true
10+
show-sql: false
1211
properties:
1312
hibernate:
1413
format_sql: false
@@ -17,7 +16,7 @@ spring:
1716
hibernate:
1817
naming:
1918
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
20-
ddl-auto: create-drop
19+
ddl-auto: update
2120
# create 기존테이블을 삭제하고 다시 생성
2221
# create-drop 기존테이블을 삭제하고 다시생성. 종료 시점에 테이블삭제
2322
# update 변경된 스키마 적용 (운영 DB 에서 사용X)
@@ -27,12 +26,12 @@ spring:
2726

2827
logging:
2928
level:
30-
root: INFO # 전체 로그를 INFO, DEBUG, WARN 수준으로 설정
31-
org.springframework.security: TRACE
32-
org.springframework.web: INFO
33-
com.myteam.server: DEBUG
29+
root: warn # 전체 로그를 INFO, DEBUG, WARN 수준으로 설정
30+
org.springframework.security: warn
31+
org.springframework.web: warn
32+
com.myteam.server: info
3433
# 필요 시 특정 SQL 로그를 추가하거나 Hibernate SQL 로그를 설정
35-
hibernate.SQL: INFO
34+
hibernate.SQL: warn
3635
org.springframework.boot.autoconfigure: INFO
3736
org.springframework.beans.factory.support.DefaultListableBeanFactory: WARN
3837
# 아직 Thymeleaf 를 사용하지 않기 때문에, 경고 메세지를 제거합니다.

0 commit comments

Comments
 (0)