[유진호] sprint11#81
Merged
Hidden character warning
The head ref may contain hidden characters: "\uc720\uc9c4\ud638-sprint11"
Merged
Conversation
fresh502
approved these changes
Oct 22, 2025
Collaborator
fresh502
left a comment
There was a problem hiding this comment.
미션의 요구 사항보다 항상 더 많은 것을 더 고민해서 제출해주셔서 좋습니다.
upload 미들웨어도 수정해주신 것 확인했습니다.
도커에서 bind mounts보다는 named volumes을 사용하는 것이 좀 더 권장되는 방식입니다.
| env_file: | ||
| - .env | ||
| volumes: | ||
| - ./uploads:/app/uploads |
Collaborator
There was a problem hiding this comment.
bind mounts보다는 named volumes를 사용하는 것을 좀 더 권장합니다.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
미션 목표
요구사항
Github Actions 활용
main브랜치에 push가 발생하면 AWS 배포를 진행하는 액션을 구현해 주세요.AWS S3 적용
Docker 이미지 만들기
다음을 만족하는 Dockerfile과 docker-compose.yaml을 작성해 주세요.
멘토에게
헬스체크
docker-compose.yaml내에서 Postgres 컨테이너의 상태를pg_isready로 주기적으로 확인하도록 설정했습니다.healthy)일 때만 기동되도록 의존성을 설정했습니다.Volume 구성 강화
/app/uploads경로를 호스트와 Volume으로 연결했습니다.Prisma 마이그레이션 자동화
migrate deploy명령어를 포함했습니다.보안 및 권한 관리
USER app을 설정했습니다..dockerignore를 구성했습니다.upload 미들웨어
.env의 실행 환경 설정에 따라 로컬 스토리지 또는 AWS S3 중 하나를 선택하여 파일 업로드를 처리하도록 수정했습니다..env.example에UPLOAD_STRATEGY항목을 추가했습니다.