-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[20기_유지민] Docker & API 리팩토링 미션 제출합니다. #54
base: jiminnimij
Are you sure you want to change the base?
Conversation
우우 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이번주 과제도 고생하셨습니다 👍👍
db: | ||
image: mysql:5.7 #windows | ||
environment: | ||
MYSQL_ROOT_PASSWORD: root1234 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.env 파일에 민감한 정보를 저장하고, 환경변수를 불러오는 방식으로 수정해보는 것은 어떨까요?
docker-compose 파일과 같은 위치에 .env 파일을 생성하면 별도 설정 없이 환경변수를 가져올 수 있어요!
|
||
jwt: | ||
secret: "Vwgff4uvzQ4pes0Zt7sDNtL6pxGIkg2k95ZIrVhvlGmxcDRq9O1fnLN2lEzItsNE4w_lQ3f7xd09ukYxzIYS6InrYfg4ed2BSP0wmZ2RJEswzDsCLNqwRRXW780o1TYbuQpiXuUN0TnwXzb2l4YnNcXLHyBBJoIU17y1H56Aq1-ABW6MREvcFvlW-oUcMw92R0piQK4hO_Xo8AFIDnbeAqQUQ2Q91iQZRTtiNrV9Gv_pF_f1LF9OLDnvmTTy7Av7yFRstie90G9ABYsFTrxywHLzA-QMDYOeUOk8wq6TfxKbULK8PqWR__s1ebFlA3bFO1shhUdffA" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jwt 암호화키도 .env 파일에 저장하여 환경 변수로 불러오는 게 어떨까요?
- COPY | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
자세하게 파일 구성 요소들을 작성해주셔서 배워갑니다 !!
|
||
이런 image의 layer의 구조가 저장 방식의 효율을 끌어올림 | ||
|
||
### Docker info |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
항상 스터디에서 배운 내용 외의 부분까지 조사해주셔서 배울 점이 많습니다
image를 통해 container를 계속 생성할 수 있고 하나의 image를 통해 여러 container를 생성 가ㅡㅇ | ||
|
||
### image layer | ||
imageㅡ container 실행을 위한 요소를 layer 구ㅗ를 ㅗㅇ해 과리 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
image layer라는 개념은 몰랐는데 덕분에 배워갑니다!
노트북 고장으로 wsxㅈㄴㅌ 글자가 잘 안쳐져서.. 오타가 많은데 다시 수정해두겠습니다...