Skip to content

Comments

[Feature/#160] - 서버 인프라 구성#174

Merged
alsgud8311 merged 11 commits intodevelopmentfrom
feature/#160
Sep 25, 2025
Merged

[Feature/#160] - 서버 인프라 구성#174
alsgud8311 merged 11 commits intodevelopmentfrom
feature/#160

Conversation

@alsgud8311
Copy link
Contributor

📌 개요

서버 인프라 구성을 추가한 PR입니다.
dev, prod 별로 각각 설정되어 있는 인프라 구성이 다르기 때문에 actions, compose 파일 등을 구분하여 작성하였으며, 각각 vpc 내부 프라이빗 IP를 통해 db, redis 간 통신이 가능하도록 설정을 추가하였습니다.

✅ 작업 내용

  • compose 파일 추가 (local, dev, prod)
  • ec2 기본 세팅(새 인스턴스 시작, node, Docker, docker-compose 등 설치
  • cd를 위한 acitons 파일 추가
  • 서버 구성을 위한 환경변수 세팅
  • Claude code 코드리뷰 추가

🧪 테스트

  • 직접 테스트 완료

📝 참고 사항

  • 없음

📎 관련 이슈

Closes #160

@alsgud8311 alsgud8311 added the feature 기능 추가 label Sep 25, 2025
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @alsgud8311, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 개발 및 운영 환경을 위한 서버 인프라를 구축하는 데 중점을 둡니다. 각 환경에 맞는 고유한 구성과 함께, VPC 내에서 데이터베이스와 Redis 인스턴스 간의 안전한 내부 통신을 보장하도록 설계되었습니다. 이를 통해 서비스의 안정적인 배포 및 운영 기반을 마련합니다.

Highlights

  • 서버 인프라 구성: 개발 및 운영 환경을 위한 서버 인프라 구성이 추가되었습니다.
  • 환경별 분리: 개발 및 운영 환경별로 구분된 액션 및 Docker Compose 파일이 작성되었습니다.
  • 내부 통신 설정: VPC 내부 프라이빗 IP를 통해 DB 및 Redis 간 통신이 가능하도록 설정이 추가되었습니다.
  • Docker Compose 파일 추가: local, dev, prod 환경을 위한 Docker Compose 파일이 새로 추가되었습니다.
  • EC2 기본 설정: 새 인스턴스 시작, Node.js, Docker, docker-compose 등 EC2 기본 세팅이 포함되었습니다.
  • CI/CD를 위한 Actions 파일: 지속적인 배포(CD)를 위한 GitHub Actions 파일이 추가되었습니다.
  • 서버 환경 변수 설정: 서버 구성을 위한 환경 변수 세팅이 이루어졌습니다.
Ignored Files
  • Ignored by pattern: .github/workflows/** (3)
    • .github/workflows/deploy-nest-dev.yml
    • .github/workflows/deploy-nest-prod.yml
    • .github/workflows/pr-review.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@github-actions
Copy link

🛠️ Build Summary

Status: ✅ SUCCESS
Duration: 56초
Exit Code: 0
Commit: 54d5f19

📋 Build Output (마지막 45줄)

   Generating static pages (2/4) 
   Generating static pages (3/4) 
 ✓ Generating static pages (4/4)
   Finalizing page optimization ...
   Collecting build traces ...

Route (pages)                                 Size  First Load JS
┌ ƒ /                                      77.4 kB         639 kB
├   /_app                                      0 B         308 kB
├ ○ /404 (1351 ms)                         1.78 kB         312 kB
├ ○ /500 (1348 ms)                           757 B         309 kB
├ ƒ /api/auth/logout                           0 B         308 kB
├ ƒ /dashboard                             14.6 kB         634 kB
├ ƒ /interviews                            7.56 kB         346 kB
├ ƒ /interviews/[interviewId]              11.5 kB         604 kB
├ ƒ /interviews/[interviewId]/result       5.19 kB         363 kB
├ ○ /layout (1348 ms)                        541 B         309 kB
├   └ css/2af4d3721e97fa9b.css               280 B
├ ƒ /login                                  2.6 kB         313 kB
├ ƒ /login/callback                           2 kB         333 kB
├ ƒ /login/google/callback                    2 kB         334 kB
├ ƒ /login/profile                         11.3 kB         366 kB
├ ƒ /members/[memberId]                    3.62 kB         339 kB
├ ƒ /members/interviews/[interviewId]      6.84 kB         338 kB
├ ƒ /purchase                               6.4 kB         627 kB
├ ƒ /purchase/confirm                      1.76 kB         333 kB
├ ○ /purchase/error (1348 ms)                804 B         311 kB
├ ƒ /terms/privacy                         5.08 kB         337 kB
└ ƒ /terms/termsofuse                      4.48 kB         336 kB
+ First Load JS shared by all               323 kB
  ├ chunks/framework-962931b100bb889b.js   57.6 kB
  ├ chunks/main-ebb75002f9a6377d.js         176 kB
  ├ chunks/pages/_app-0e244b3719a8da89.js  72.8 kB
  ├ css/d679a26ab67d1f1c.css               15.1 kB
  └ other shared chunks (total)            1.89 kB

ƒ Middleware                               96.7 kB

○  (Static)   prerendered as static content
ƒ  (Dynamic)  server-rendered on demand

   Memory usage report:
    - Total time spent in GC: 357.62ms
    - Peak heap usage: 68.47 MB
    - Peak RSS usage: 678.66 MB

🤖 Generated by GitHub Actions at Thu Sep 25 08:28:50 UTC 2025

gemini-code-assist[bot]

This comment was marked as resolved.

@github-actions
Copy link

🚀 Lighthouse Report for TEST1

📅 Date: 9/25/2025

Category Score
🔴 Performance 19
🟢 Accessibility 96
🟢 Best Practices 96
🟢 SEO 100

📊 Performance Details

Metric Score Value
🟢 First Contentful Paint 97 1.4 s
🔴 Largest Contentful Paint 10 6.4 s
🔴 Cumulative Layout Shift 15 0.518

🚀 Lighthouse Report for TEST2

📅 Date: 9/25/2025

Category Score
🔴 Performance 26
🟢 Accessibility 96
🟢 Best Practices 96
🟢 SEO 100

📊 Performance Details

Metric Score Value
🟢 First Contentful Paint 100 0.9 s
🔴 Largest Contentful Paint 18 5.5 s
🔴 Cumulative Layout Shift 15 0.518

🚀 Lighthouse Report for TEST3

📅 Date: 9/25/2025

Category Score
🔴 Performance 36
🟢 Accessibility 96
🟢 Best Practices 96
🟢 SEO 100

📊 Performance Details

Metric Score Value
🟢 First Contentful Paint 100 0.9 s
🟠 Largest Contentful Paint 54 3.8 s
🔴 Cumulative Layout Shift 15 0.518

🚀 Lighthouse Report for TEST4

📅 Date: 9/25/2025

Category Score
🔴 Performance 25
🟢 Accessibility 96
🟢 Best Practices 96
🟢 SEO 100

📊 Performance Details

Metric Score Value
🟢 First Contentful Paint 100 0.9 s
🔴 Largest Contentful Paint 17 5.6 s
🔴 Cumulative Layout Shift 15 0.518

🚀 Lighthouse Report for TEST5

📅 Date: 9/25/2025

Category Score
🔴 Performance 27
🟢 Accessibility 96
🟢 Best Practices 96
🟢 SEO 100

📊 Performance Details

Metric Score Value
🟢 First Contentful Paint 100 0.9 s
🔴 Largest Contentful Paint 20 5.4 s
🔴 Cumulative Layout Shift 15 0.518

@github-actions
Copy link

🛠️ Build Summary

Status: ✅ SUCCESS
Duration: 59초
Exit Code: 0
Commit: a3bb4e7

📋 Build Output (마지막 45줄)

   Generating static pages (2/4) 
   Generating static pages (3/4) 
 ✓ Generating static pages (4/4)
   Finalizing page optimization ...
   Collecting build traces ...

Route (pages)                                 Size  First Load JS
┌ ƒ /                                      77.4 kB         639 kB
├   /_app                                      0 B         308 kB
├ ○ /404 (1464 ms)                         1.78 kB         312 kB
├ ○ /500 (1463 ms)                           757 B         309 kB
├ ƒ /api/auth/logout                           0 B         308 kB
├ ƒ /dashboard                             14.6 kB         634 kB
├ ƒ /interviews                            7.56 kB         346 kB
├ ƒ /interviews/[interviewId]              11.5 kB         604 kB
├ ƒ /interviews/[interviewId]/result       5.19 kB         363 kB
├ ○ /layout (1462 ms)                        541 B         309 kB
├   └ css/2af4d3721e97fa9b.css               280 B
├ ƒ /login                                  2.6 kB         313 kB
├ ƒ /login/callback                           2 kB         333 kB
├ ƒ /login/google/callback                    2 kB         334 kB
├ ƒ /login/profile                         11.3 kB         366 kB
├ ƒ /members/[memberId]                    3.62 kB         339 kB
├ ƒ /members/interviews/[interviewId]      6.84 kB         338 kB
├ ƒ /purchase                               6.4 kB         627 kB
├ ƒ /purchase/confirm                      1.76 kB         333 kB
├ ○ /purchase/error (1462 ms)                804 B         311 kB
├ ƒ /terms/privacy                         5.08 kB         337 kB
└ ƒ /terms/termsofuse                      4.48 kB         336 kB
+ First Load JS shared by all               323 kB
  ├ chunks/framework-962931b100bb889b.js   57.6 kB
  ├ chunks/main-f3a80e9999417e68.js         176 kB
  ├ chunks/pages/_app-0e244b3719a8da89.js  72.8 kB
  ├ css/d679a26ab67d1f1c.css               15.1 kB
  └ other shared chunks (total)            1.89 kB

ƒ Middleware                               96.7 kB

○  (Static)   prerendered as static content
ƒ  (Dynamic)  server-rendered on demand

   Memory usage report:
    - Total time spent in GC: 422.41ms
    - Peak heap usage: 68.35 MB
    - Peak RSS usage: 686.80 MB

🤖 Generated by GitHub Actions at Thu Sep 25 08:36:17 UTC 2025

@github-actions
Copy link

🚀 Lighthouse Report for TEST1

📅 Date: 9/25/2025

Category Score
🔴 Performance 16
🟢 Accessibility 96
🟢 Best Practices 96
🟢 SEO 100

📊 Performance Details

Metric Score Value
🟢 First Contentful Paint 91 1.7 s
🔴 Largest Contentful Paint 2 8.3 s
🔴 Cumulative Layout Shift 15 0.518

🚀 Lighthouse Report for TEST2

📅 Date: 9/25/2025

Category Score
🔴 Performance 30
🟢 Accessibility 96
🟢 Best Practices 96
🟢 SEO 100

📊 Performance Details

Metric Score Value
🟢 First Contentful Paint 100 1.0 s
🟠 Largest Contentful Paint 51 4.0 s
🔴 Cumulative Layout Shift 15 0.518

🚀 Lighthouse Report for TEST3

📅 Date: 9/25/2025

Category Score
🔴 Performance 28
🟢 Accessibility 96
🟢 Best Practices 96
🟢 SEO 100

📊 Performance Details

Metric Score Value
🟢 First Contentful Paint 100 1.0 s
🔴 Largest Contentful Paint 23 5.2 s
🔴 Cumulative Layout Shift 15 0.518

🚀 Lighthouse Report for TEST4

📅 Date: 9/25/2025

Category Score
🔴 Performance 36
🟢 Accessibility 96
🟢 Best Practices 96
🟢 SEO 100

📊 Performance Details

Metric Score Value
🟢 First Contentful Paint 100 0.9 s
🟠 Largest Contentful Paint 57 3.7 s
🔴 Cumulative Layout Shift 15 0.518

🚀 Lighthouse Report for TEST5

📅 Date: 9/25/2025

Category Score
🔴 Performance 35
🟢 Accessibility 96
🟢 Best Practices 96
🟢 SEO 100

📊 Performance Details

Metric Score Value
🟢 First Contentful Paint 100 0.9 s
🟠 Largest Contentful Paint 59 3.7 s
🔴 Cumulative Layout Shift 15 0.518

@alsgud8311 alsgud8311 merged commit 3ad8d82 into development Sep 25, 2025
5 checks passed
@github-actions
Copy link

🛠️ Build Summary

Status: ✅ SUCCESS
Duration: 57초
Exit Code: 0
Commit: a59e5db

📋 Build Output (마지막 45줄)

   Generating static pages (2/4) 
   Generating static pages (3/4) 
 ✓ Generating static pages (4/4)
   Finalizing page optimization ...
   Collecting build traces ...

Route (pages)                                 Size  First Load JS
┌ ƒ /                                      77.4 kB         639 kB
├   /_app                                      0 B         308 kB
├ ○ /404 (1443 ms)                         1.78 kB         312 kB
├ ○ /500 (1441 ms)                           757 B         309 kB
├ ƒ /api/auth/logout                           0 B         308 kB
├ ƒ /dashboard                             14.6 kB         634 kB
├ ƒ /interviews                            7.56 kB         346 kB
├ ƒ /interviews/[interviewId]              11.5 kB         604 kB
├ ƒ /interviews/[interviewId]/result       5.19 kB         363 kB
├ ○ /layout (1441 ms)                        541 B         309 kB
├   └ css/2af4d3721e97fa9b.css               280 B
├ ƒ /login                                  2.6 kB         313 kB
├ ƒ /login/callback                           2 kB         333 kB
├ ƒ /login/google/callback                    2 kB         334 kB
├ ƒ /login/profile                         11.3 kB         366 kB
├ ƒ /members/[memberId]                    3.62 kB         339 kB
├ ƒ /members/interviews/[interviewId]      6.84 kB         338 kB
├ ƒ /purchase                               6.4 kB         627 kB
├ ƒ /purchase/confirm                      1.76 kB         333 kB
├ ○ /purchase/error (1441 ms)                804 B         311 kB
├ ƒ /terms/privacy                         5.08 kB         337 kB
└ ƒ /terms/termsofuse                      4.48 kB         336 kB
+ First Load JS shared by all               323 kB
  ├ chunks/framework-962931b100bb889b.js   57.6 kB
  ├ chunks/main-324b4879bd7f5b33.js         176 kB
  ├ chunks/pages/_app-0e244b3719a8da89.js  72.8 kB
  ├ css/d679a26ab67d1f1c.css               15.1 kB
  └ other shared chunks (total)            1.89 kB

ƒ Middleware                               96.7 kB

○  (Static)   prerendered as static content
ƒ  (Dynamic)  server-rendered on demand

   Memory usage report:
    - Total time spent in GC: 366.02ms
    - Peak heap usage: 68.09 MB
    - Peak RSS usage: 681.11 MB

🤖 Generated by GitHub Actions at Thu Sep 25 08:45:26 UTC 2025

@github-actions
Copy link

🚀 Lighthouse Report for TEST1

📅 Date: 9/25/2025

Category Score
🔴 Performance 16
🟢 Accessibility 96
🟢 Best Practices 96
🟢 SEO 100

📊 Performance Details

Metric Score Value
🟢 First Contentful Paint 92 1.7 s
🔴 Largest Contentful Paint 3 7.8 s
🔴 Cumulative Layout Shift 15 0.518

🚀 Lighthouse Report for TEST2

📅 Date: 9/25/2025

Category Score
🔴 Performance 24
🟢 Accessibility 96
🟢 Best Practices 96
🟢 SEO 100

📊 Performance Details

Metric Score Value
🟢 First Contentful Paint 100 0.9 s
🔴 Largest Contentful Paint 19 5.5 s
🔴 Cumulative Layout Shift 15 0.518

🚀 Lighthouse Report for TEST3

📅 Date: 9/25/2025

Category Score
🔴 Performance 28
🟢 Accessibility 96
🟢 Best Practices 96
🟢 SEO 100

📊 Performance Details

Metric Score Value
🟢 First Contentful Paint 100 0.9 s
🔴 Largest Contentful Paint 25 5.1 s
🔴 Cumulative Layout Shift 15 0.518

🚀 Lighthouse Report for TEST4

📅 Date: 9/25/2025

Category Score
🔴 Performance 26
🟢 Accessibility 96
🟢 Best Practices 96
🟢 SEO 100

📊 Performance Details

Metric Score Value
🟢 First Contentful Paint 100 0.9 s
🔴 Largest Contentful Paint 21 5.3 s
🔴 Cumulative Layout Shift 15 0.518

🚀 Lighthouse Report for TEST5

📅 Date: 9/25/2025

Category Score
🔴 Performance 35
🟢 Accessibility 96
🟢 Best Practices 96
🟢 SEO 100

📊 Performance Details

Metric Score Value
🟢 First Contentful Paint 100 0.9 s
🟠 Largest Contentful Paint 55 3.8 s
🔴 Cumulative Layout Shift 15 0.518

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.

[Feature] nestjs 서버 인프라 구성

1 participant