Skip to content

refactor: NCP server로 rollback#151

Merged
ekdan38 merged 1 commit into
mainfrom
refactor/rollback-ncp
Mar 31, 2026
Merged

refactor: NCP server로 rollback#151
ekdan38 merged 1 commit into
mainfrom
refactor/rollback-ncp

Conversation

@ekdan38
Copy link
Copy Markdown
Collaborator

@ekdan38 ekdan38 commented Mar 31, 2026

🔥ISSUE

NCP server로 rollback

@ekdan38 ekdan38 merged commit 0995b40 into main Mar 31, 2026
1 check passed
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the production Docker Compose configuration by removing the public port mapping for the MySQL database and switching the application image registry from GCP to NCR. Feedback was provided regarding the use of the "latest" tag in a production environment, which can lead to deployment instability, and the hardcoding of the registry URL instead of using environment variables.

Comment thread docker-compose.prod.yml

app:
image: ${GCP_REGION}-docker.pkg.dev/${GCP_PROJECT_ID}/${GCP_REPOSITORY}/link-it-backend:latest
image: link-it-registry.kr.ncr.ntruss.com/link-it-backend:latest
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

운영 환경(production)에서는 컨테이너 이미지에 latest 태그를 사용하는 것을 지양해야 합니다. latest 태그는 배포 시점에 어떤 버전의 이미지가 사용되는지 불분명하게 만들며, 이미지 업데이트 시 의도치 않은 변경이 발생할 수 있어 롤백과 디버깅을 어렵게 합니다. 특정 버전 태그(예: 커밋 해시 또는 시맨틱 버저닝)를 사용하는 것을 권장합니다.\n\n또한, 레지스트리 주소가 하드코딩되어 있습니다. 리포지토리 규칙에 따라 환경별 설정은 YAML 파일 내에서 기본값을 포함한 환경 변수를 사용하여 관리하는 것이 좋습니다.

References
  1. For environment-specific configurations in YAML files, use environment variables with default values instead of hardcoding or commenting out values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant