Skip to content

[IDLE-572] 케어밋 서버를 홈 서버로 이전#273

Merged
mjj111 merged 3 commits intodevelopfrom
infra/IDLE-572
May 9, 2025
Merged

[IDLE-572] 케어밋 서버를 홈 서버로 이전#273
mjj111 merged 3 commits intodevelopfrom
infra/IDLE-572

Conversation

@mjj111
Copy link
Member

@mjj111 mjj111 commented May 9, 2025

1. 📄 Summary

기존 AWS 기반으로 운영되던 서버를 홈 서버 환경으로 이전하였습니다.
이전된 홈 서버는 Nginx를 활용한 SSL 터미네이션 및 로드 밸런싱 구성을 통해,
production 및 development 서버를 분리하여 운용하고 있습니다.

또한, MySQL과 Redis 서비스를 포함한 전체 인프라를 구축 완료하였으며,
기존 데이터에 대한 백업 및 마이그레이션 작업도 완료하였습니다.

Summary by CodeRabbit

  • Chores

    • 배포 워크플로우에서 AWS 자격 증명 및 보안 그룹 수정 단계를 제거하여 배포 과정을 간소화했습니다.
    • 프로덕션 배포 워크플로우가 수동 실행으로 변경되고, Bastion 호스트를 통한 SSH 터널링 없이 직접 서버에 연결하도록 개선되었습니다.
    • Docker 설치 및 환경 변수 설정 과정이 간단해졌으며, 서비스 포트가 8081로 변경되었습니다.
  • Refactor

    • 개발용 Docker Compose 설정에서 네트워크 구성을 하나로 통합하고, 서비스 포트 및 데이터베이스 초기화 방식을 개선했습니다.
    • 서버 포트가 환경 변수로 설정 가능하도록 변경되어 유연성이 향상되었습니다.

@mjj111 mjj111 self-assigned this May 9, 2025
@mjj111 mjj111 added the 🌍인프라 인프라 환경 이슈 label May 9, 2025
@coderabbitai
Copy link

coderabbitai bot commented May 9, 2025

Walkthrough

이 변경 사항은 개발 및 프로덕션 배포용 GitHub Actions 워크플로우에서 AWS 자격 증명 구성 및 보안 그룹 인바운드 규칙 수정 단계를 제거하고, 배스천 호스트를 통한 SSH 터널링 없이 직접 인스턴스에 접근하도록 배포 프로세스를 단순화했습니다. 또한 Docker Compose 및 서버 포트 설정, 네트워크 구성을 통합 및 개선했습니다.

Changes

파일/경로 그룹 변경 요약
.github/workflows/dev-server-deployer.yaml,
.github/workflows/prod-server-deployer.yaml
AWS 자격 증명 구성, 보안 그룹 인그레스 규칙 추가/삭제 단계 제거. 프로덕션 배포 워크플로우는 트리거를 workflow_dispatch로 변경, 배스천 호스트 및 SSH 터널링 제거, 직접 인스턴스 접근, Docker 설치 및 배포 단계 단순화, 환경 파일 생성 방식 개선, 컨테이너 포트 8081로 변경.
idle-presentation/compose-dev.yaml 두 개의 별도 네트워크를 하나의 caremeet-net 네트워크로 통합, spring 서비스 포트를 8082로 변경, mysql 서비스에서 데이터베이스 생성 커맨드로 변경, 볼륨 명시적 마운트, 네트워크 정의 단순화.
idle-presentation/src/main/resources/application.yml 서버 포트를 환경 변수(SERVER_PORT)로 설정 가능하도록 변경, 기본값 8080 유지.

Sequence Diagram(s)

sequenceDiagram
    participant Developer
    participant GitHubActions
    participant ProdServer

    Developer->>GitHubActions: 수동 workflow_dispatch 트리거
    GitHubActions->>ProdServer: SSH로 직접 접속 (배스천 없이)
    GitHubActions->>ProdServer: Docker 및 Docker Compose 설치 확인/설치
    GitHubActions->>ProdServer: 환경 파일 생성 (vars, secrets 병합)
    GitHubActions->>ProdServer: Docker 로그인 및 이미지 pull
    GitHubActions->>ProdServer: 기존 컨테이너 중지 및 제거
    GitHubActions->>ProdServer: 새 컨테이너 실행 (포트 8081)
Loading

Possibly related PRs

Suggested labels

☘️배포

Tip

⚡️ Faster reviews with caching
  • CodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure Review - Disable Cache at either the organization or repository level. If you prefer to disable all data retention across your organization, simply turn off the Data Retention setting under your Organization Settings.

Enjoy the performance boost—your workflow just got faster.


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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@sonarqubecloud
Copy link

sonarqubecloud bot commented May 9, 2025

coderabbitai[bot]

This comment was marked as resolved.

@mjj111 mjj111 merged commit e6d8d2e into develop May 9, 2025
6 checks passed
@mjj111 mjj111 deleted the infra/IDLE-572 branch May 9, 2025 05:50
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

Comments