Skip to content

[RELEASE] v0.1.4#61

Merged
ydking0911 merged 6 commits intoproductionfrom
develop
Mar 16, 2026
Merged

[RELEASE] v0.1.4#61
ydking0911 merged 6 commits intoproductionfrom
develop

Conversation

@ydking0911
Copy link
Contributor

@ydking0911 ydking0911 commented Mar 16, 2026

📝 Pull Request Template

📌 제목

온프레미스 환경 배포 테스트


📢 요약

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 참고)
  • 🔹 변경 사항에 대한 테스트를 수행했습니다. (버그 수정/기능 테스트)
  • 🔹 관련 문서를 업데이트했습니다. (필요한 경우)

📜 기타

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

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

Summary by CodeRabbit

  • Chores
    • Deployment infrastructure updated to support on-premises environments with revised connection parameters
    • MySQL (v8.0) and MongoDB (v7.0) database services integrated with health checks and persistent storage
    • Backend service now includes resource limits (4 CPUs, 16GB memory) for optimized performance management

ydking0911 and others added 6 commits March 10, 2026 23:09
- deploy job 이름 'Deploy to GCE' → 'Deploy to On-Premises' 수정
- SSH 접속 시크릿 GCE_HOST/GCE_USER/GCE_SSH_KEY/GCE_SSH_PORT → SERVER_HOST/SERVER_USER/SERVER_SSH_KEY/SERVER_SSH_PORT 로 변경 (기존 secret 변수들은 보존해둠)
…-백엔드-서버-마이그레이션

fix: GCP에서 온프레미스 서버로 배포 대상 변경
## 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>
…-백엔드-서버-마이그레이션

fix: GCP Cloud SQL · MongoDB Atlas를 온프레미스 내부 컨테이너로 전환
@ydking0911 ydking0911 requested a review from KoungQ March 16, 2026 10:00
@ydking0911 ydking0911 self-assigned this Mar 16, 2026
@coderabbitai
Copy link

coderabbitai bot commented Mar 16, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: f679028f-503a-446e-b09b-94e4f7bd5c51

📥 Commits

Reviewing files that changed from the base of the PR and between f77f7bb and ec81143.

📒 Files selected for processing (2)
  • .github/workflows/cicd.yml
  • docker-compose.yml

📝 Walkthrough

Walkthrough

Backend infrastructure is being migrated from Google Cloud Platform to on-premises servers. Deployment configuration is updated to use new connection parameters and secrets. Docker Compose configuration is extended to include MySQL and MongoDB services with health checks and resource limits.

Changes

Cohort / File(s) Summary
CI/CD Deployment Configuration
.github/workflows/cicd.yml
Deploy job renamed from "Deploy to GCE" to "Deploy to On-Premises". SSH connection parameters changed from GCE-specific variables to generic SERVER variables. Database secrets for MySQL and MongoDB (MYSQL_ROOT_PASSWORD, MYSQL_DATABASE, MONGO_ROOT_USERNAME, MONGO_ROOT_PASSWORD, MONGO_DATABASE) added to environment variables and propagated through deployment steps. Explicit image pulls added for mysql:8.0 and mongo:7.0.
Docker Infrastructure
docker-compose.yml
New mysql service added with configuration (image, ports, environment variables, volumes, healthcheck). New mongodb service added with similar full configuration. Backend service updated to depend on mysql and mongodb services with health condition checks, and redis with started condition. Resource limits added to backend (4 CPUs, 16GB memory). Named volumes mysql_data and mongodb_data created.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 From cloudy peaks to premises true,
We hop the backend o'er and through,
MySQL, Mongo join the dance,
Docker swirls in configuration's trance,
On-prem servers now take their stance! 🎉

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch develop
📝 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 OpenGrep to find security vulnerabilities and bugs across 17+ programming languages.

OpenGrep is compatible with Semgrep configurations. Add an opengrep.yml or semgrep.yml configuration file to your project to enable OpenGrep analysis.

@ydking0911 ydking0911 merged commit fb70ec8 into production Mar 16, 2026
6 of 7 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.

[REFACTOR] GCP to On-premises 백엔드 서버 마이그레이션

2 participants