Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

데이터베이스 설정 #15

Open
3 of 4 tasks
2hwayoung opened this issue Feb 28, 2025 · 2 comments · May be fixed by #18
Open
3 of 4 tasks

데이터베이스 설정 #15

2hwayoung opened this issue Feb 28, 2025 · 2 comments · May be fixed by #18
Assignees
Labels
BE 백엔드 ⚒️ build 빌드

Comments

@2hwayoung
Copy link
Collaborator

2hwayoung commented Feb 28, 2025

📄 설명

기존 application.yml 설정을 환경별(application-dev.yml, application-test.yml, application-prod.yml)로 분리하여 각 환경에 맞게 DB 연결 정보, JPA ddl-auto, 로깅 레벨 등을 설정합니다.

  • prod: 운영환경 (MySQL)
  • dev: 개발환경 (MySQL with Docker-compose)
  • test: memoryH2Database

운영(prod) 환경에서 데이터베이스 스키마 마이그레이션을 위해 Flyway를 미리 도입합니다.
Flyway는 DB 스키마 버전 관리를 위한 툴로 DB 변경사항(테이블 추가, 컬럼 변경 등)을 스크립트 파일로 만들고 버전으로 관리해 애플리케이션 실행 시 자동으로 순서대로 적용하거나 이력을 추적합니다.
이를 통해 개발부터 운영까지 데이터베이스 스키마를 일관되고 안전하게 관리할 수 있습니다.

✅ 작업할 내용

  • MySQL docker-compose 설정 파일 생성
  • application.yml 설정 환경별 분리
  • 각 환경별 연결 테스트
  • 설정 내용 문서화 및 README 업데이트

💡 참고 자료

Flyway 연결 설정

No response

@2hwayoung 2hwayoung added BE 백엔드 ⚒️ build 빌드 labels Feb 28, 2025
@2hwayoung 2hwayoung self-assigned this Feb 28, 2025
@2hwayoung
Copy link
Collaborator Author

/cib setting database

Copy link

Branch feat/15-setting_database created for issue: setting database

@2hwayoung 2hwayoung linked a pull request Feb 28, 2025 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BE 백엔드 ⚒️ build 빌드
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant