Skip to content

fix: GCP Cloud SQL · MongoDB Atlas를 온프레미스 내부 컨테이너로 전환#60

Merged
ydking0911 merged 2 commits intodevelopfrom
refator/#56/gcp-to-on-premises-백엔드-서버-마이그레이션
Mar 16, 2026

Hidden character warning

The head ref may contain hidden characters: "refator/#56/gcp-to-on-premises-\ubc31\uc5d4\ub4dc-\uc11c\ubc84-\ub9c8\uc774\uadf8\ub808\uc774\uc158"
Merged

fix: GCP Cloud SQL · MongoDB Atlas를 온프레미스 내부 컨테이너로 전환#60
ydking0911 merged 2 commits intodevelopfrom
refator/#56/gcp-to-on-premises-백엔드-서버-마이그레이션

Conversation

@ydking0911
Copy link
Contributor

📝 Pull Request Template

📌 제목

docker-compose 및 cicd 파일 마이그레이션


📢 요약

docker-compose.yml

  • mysql:8.0 서비스 추가

    • utf8mb4 캐릭터셋 설정
    • healthcheck (mysqladmin ping) 적용
    • mysql_data 볼륨 마운트
    • 환경변수: MYSQL_ROOT_PASSWORD, MYSQL_DATABASE, RDB_USERNAME, RDB_PASSWORD
  • mongodb:7.0 서비스 추가

    • healthcheck (mongosh ping) 적용
    • mongodb_data 볼륨 마운트
    • 환경변수: MONGO_ROOT_USERNAME, MONGO_ROOT_PASSWORD, MONGO_DATABASE
  • backend 서비스

    • depends_on을 redis 단순 의존 → mysql/mongodb healthcheck 조건부 의존으로 변경
    • deploy.resources.limits 추가: cpus 4.0, memory 16G

.github/workflows/cicd.yml

  • deploy job에 MySQL · MongoDB 관련 secrets 추가 (MYSQL_ROOT_PASSWORD, MYSQL_DATABASE, MONGO_ROOT_USERNAME, MONGO_ROOT_PASSWORD, MONGO_DATABASE)
  • envs 전달 목록에 위 5개 변수 추가
  • 환경변수 정규화(\r\n 제거) 블록에 위 5개 변수 추가
  • .env 생성 printf 블록에 위 5개 변수 추가
  • docker pull mysql:8.0 · mongo:7.0 단계 추가

🔗 연관 이슈: Resolves #56


🚀 PR 유형

해당하는 항목에 체크해주세요.

  • ✨ 새로운 기능 추가
  • 🐛 버그 수정
  • 🎨 CSS/UI 디자인 변경
  • 🔧 코드에 영향 없는 변경(오타 수정, 탭 사이즈 변경, 변수명 변경 등)
  • 🔨 코드 리팩토링
  • 📝 주석 추가 및 수정
  • 📄 문서 수정
  • 🧪 테스트 추가 또는 리팩토링
  • 🏗️ 빌드 및 패키지 매니저 수정
  • 📂 파일 또는 폴더명 수정
  • 🗑️ 파일 또는 폴더 삭제

✅ PR 체크리스트

PR이 다음 요구 사항을 충족하는지 확인해주세요.

  • 🔹 커밋 메시지 컨벤션을 준수했습니다. (Commit message convention 참고)
  • 🔹 변경 사항에 대한 테스트를 수행했습니다. (버그 수정/기능 테스트)
  • 🔹 관련 문서를 업데이트했습니다. (필요한 경우)

📜 기타

리뷰어가 알면 좋을 추가 사항을 적어주세요.

  • 기능 개선 아이디어
  • 코드 리팩토링 필요 여부 등

## docker-compose.yml

- mysql:8.0 서비스 추가
  - utf8mb4 캐릭터셋 설정
  - healthcheck (mysqladmin ping) 적용
  - mysql_data 볼륨 마운트
  - 환경변수: MYSQL_ROOT_PASSWORD, MYSQL_DATABASE, RDB_USERNAME, RDB_PASSWORD

- mongodb:7.0 서비스 추가
  - healthcheck (mongosh ping) 적용
  - mongodb_data 볼륨 마운트
  - 환경변수: MONGO_ROOT_USERNAME, MONGO_ROOT_PASSWORD, MONGO_DATABASE

- backend 서비스
  - depends_on을 redis 단순 의존 → mysql/mongodb healthcheck 조건부 의존으로 변경
  - deploy.resources.limits 추가: cpus 4.0, memory 16G

## .github/workflows/cicd.yml

- deploy job에 MySQL · MongoDB 관련 secrets 추가
  (MYSQL_ROOT_PASSWORD, MYSQL_DATABASE, MONGO_ROOT_USERNAME, MONGO_ROOT_PASSWORD, MONGO_DATABASE)
- envs 전달 목록에 위 5개 변수 추가
- 환경변수 정규화(\r\n 제거) 블록에 위 5개 변수 추가
- .env 생성 printf 블록에 위 5개 변수 추가
- docker pull mysql:8.0 · mongo:7.0 단계 추가

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ydking0911 ydking0911 requested a review from KoungQ March 16, 2026 07:28
@ydking0911 ydking0911 self-assigned this Mar 16, 2026
@ydking0911 ydking0911 added the fix label Mar 16, 2026
@coderabbitai
Copy link

coderabbitai bot commented Mar 16, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 8d7cb72c-1ba4-4d58-b544-9acd489c841a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch refator/#56/gcp-to-on-premises-백엔드-서버-마이그레이션
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

CodeRabbit can use TruffleHog to scan for secrets in your code with verification capabilities.

Add a TruffleHog config file (e.g. trufflehog-config.yml, trufflehog.yml) to your project to customize detectors and scanning behavior. The tool runs only when a config file is present.

@ydking0911 ydking0911 merged commit ec81143 into develop Mar 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant