Skip to content

Conversation

@bsko98
Copy link
Collaborator

@bsko98 bsko98 commented Dec 8, 2025

📋 상세 설명

  • 로컬 환경용 도커 컴포즈 파일을 생성했습니다.
  • gitignore 파일에 mysql 볼륨 관련 파일들을 무시하도록 설정을 해뒀습니다.
  • 이미 알고 계시겠지만 도커 컴포즈 파일 실행 전 ./gradlew bootJar 한 번 하시길 권장드립니다 !!(전 이거 때문에 좀 고생했습니다...)
  • R__ 파일의 postMeta 더미데이터 추가 쿼리를 개선했습니다.

📊 체크리스트

  • PR 제목이 형식에 맞나요 e.g. feat: PR을 등록한다
  • 코드가 테스트 되었나요
  • 문서는 업데이트 되었나요
  • 불필요한 코드를 제거했나요
  • 이슈와 라벨이 등록되었나요

📆 마감일

Close #136

@bsko98 bsko98 self-assigned this Dec 8, 2025
@bsko98 bsko98 added the ✨feature 새로운 기능 추가 label Dec 8, 2025
@github-actions
Copy link

github-actions bot commented Dec 8, 2025

Unit Test Results

  36 files  ±0    36 suites  ±0   4s ⏱️ -1s
109 tests ±0  109 ✔️ ±0  0 💤 ±0  0 ±0 
110 runs  ±0  110 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit ca2f6de. ± Comparison against base commit eea8680.

@codecov
Copy link

codecov bot commented Dec 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Contributor

@LeeShinHaeng LeeShinHaeng left a comment

Choose a reason for hiding this comment

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

고생 많으셨습니다! 궁금한점이 있어 코멘트 하나 남겼습니다!


# application.yml 변수 매핑
- DB_HOST=mysql
- DB_PORT=3306
Copy link
Contributor

Choose a reason for hiding this comment

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

제가 정확히 알지 못해서 질문드립니다!
56번 줄에서 3319번 포트에 매핑을 했는데 여기서는 3306번 포트로 매핑을 해놓으셨더라구요.
혹시 같은 네트워크에서는 외부에 노출된 포트가 아니라 각 이미지 내부 포트로 통신이 이루어지는건가요?

Copy link
Collaborator Author

@bsko98 bsko98 left a comment

Choose a reason for hiding this comment

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

56번 줄에서 3319번 포트에 매핑을 했는데 여기서는 3306번 포트로 매핑을 해놓으셨더라구요.
혹시 같은 네트워크에서는 외부에 노출된 포트가 아니라 각 이미지 내부 포트로 통신이 이루어지는건가요?

도커 컨테이너끼리는 같은 네트워크 안에 있기 때문에 '외부 포트(3319)'가 아니라 '내부 포트(3306)'와 '서비스 이름(mysql)'으로 통신한다고 합니다.

저는 기존 로컬 환경과 똑같은 상황인데 (spring과 mysql이 3306으로 연결) 외부에서 연결하는 포트만 추가됐다(3319)라고 이해했습니다.

@LeeShinHaeng
Copy link
Contributor

도커 컨테이너끼리는 같은 네트워크 안에 있기 때문에 '외부 포트(3319)'가 아니라 '내부 포트(3306)'와 '서비스 이름(mysql)'으로 통신한다고 합니다.

저는 기존 로컬 환경과 똑같은 상황인데 (spring과 mysql이 3306으로 연결) 외부에서 연결하는 포트만 추가됐다(3319)라고 이해했습니다.

친절한 설명 감사합니다! 👍 LGTM!

@bsko98 bsko98 merged commit af8bc5f into dev Dec 9, 2025
2 checks passed
@bsko98 bsko98 deleted the feat/local-docker-compose branch December 9, 2025 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨feature 새로운 기능 추가

Projects

None yet

Development

Successfully merging this pull request may close these issues.

로컬 실행용 도커 컴포즈 파일 생성

3 participants