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

build: 로컬에서 db 실행 #668

Merged
merged 4 commits into from
Aug 22, 2023
Merged

build: 로컬에서 db 실행 #668

merged 4 commits into from
Aug 22, 2023

Conversation

scarf005
Copy link
Member

@scarf005 scarf005 commented Aug 13, 2023

개요

image

RDS를 쓸 필요없이 로컬에서 DB를 실행할 수 있게, 개인정보를 모두 제거한 00_init.sql.gz 덤프 파일을 추가했습니다. docker compose up을 사용해 실행 가능합니다 (nginx 는 주석 처리해야 함).

궁금한 점

  • db_data 볼륨은 현재 사용중인가요?

@scarf005 scarf005 requested a review from jimin52 August 13, 2023 06:26
@scarf005 scarf005 temporarily deployed to development August 13, 2023 06:26 — with GitHub Actions Inactive
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 친구의 목적이 궁금합니다

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

지난번에 마이그레이션할때 테이블 구조를 한눈에 볼 수 있으면 좋겠다는 생각이 들어서 추가한 스크립트입니다.
실행하면 describe <테이블> 부분을 정규식으로 긁어와 파일에 저장해줍니다

@jimin52
Copy link
Member

jimin52 commented Aug 21, 2023

db_data 볼륨으로 관리하다가 호스트 경로에 바인드시킨 것 같네요. 언제 바뀌었을까요..?

Copy link
Member

@jimin52 jimin52 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

제가 볼 때 문제 없는 것 같습니다.
backup.sql 은 언제 실행되는 건가요?

@scarf005
Copy link
Member Author

scarf005 commented Aug 21, 2023

아, backup.sh은 필요할 때 수동으로 실행하는 스크립트에요

@scarf005 scarf005 merged commit 798150f into develop Aug 22, 2023
@scarf005 scarf005 deleted the local-db branch August 22, 2023 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 완료
Development

Successfully merging this pull request may close these issues.

로컬에서 DB 실행
2 participants