-
Notifications
You must be signed in to change notification settings - Fork 0
Issue/199/redis multi instance #200
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
base: dev
Are you sure you want to change the base?
Changes from 35 commits
2819ce9
e3033f4
a07d58f
0fafe1f
ae55318
a83f952
d7eaee6
763d3d4
03d0e5e
0b8c411
4d1fb52
8040760
65c263d
a2dfa8f
65303c6
43b987e
04b280b
fcfef50
dfedc4e
0667777
a77352c
1394dca
2e8a6a6
e5a2f4b
45466d9
8d90f77
9dcdb25
a6aeba6
92dd578
6dd9b38
35861e1
8c046ee
d54486e
2fa4438
9fe4ad1
c78a055
7178df6
aa4782a
5eb97d3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: '3.8' | ||
|
||
services: | ||
redis-MQ: | ||
image: redis:7.2-alpine | ||
container_name: redis | ||
ports: | ||
- '6379:6379' | ||
volumes: | ||
- ./redis.conf:/usr/local/etc/redis/redis.conf | ||
- ./redis-data:/data | ||
command: ['redis-server', '/usr/local/etc/redis/redis.conf'] | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: '3.8' | ||
|
||
services: | ||
redis-MQ: | ||
image: redis:7.2-alpine | ||
container_name: redis-mq | ||
ports: | ||
- '6379:6379' | ||
volumes: | ||
- ./redis.conf:/usr/local/etc/redis/redis.conf | ||
- ./redis-data:/data | ||
command: ['redis-server', '/usr/local/etc/redis/redis.conf'] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 코드 패치 리뷰
이러한 이유들로 인해 현재 이 코드는 병합되기에 위험 요소가 존재합니다. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
.git | ||
*Dockerfile* | ||
../../node_modules | ||
node_modules | ||
dist | ||
apps/server/volumes | ||
volumes | ||
apps/server/test |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,4 +44,6 @@ lerna-debug.log* | |
|
||
apps/server/volumes | ||
volumes | ||
.clinic | ||
|
||
# redis | ||
.docker/redis/redis-data | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이 코드 수정사항은 몇 가지 문제를 안고 있습니다. 첫째, |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx lint-staged | ||
yarn lint-staged |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
/dist | ||
deployment/**/*.yaml | ||
.github/**/*.yml | ||
**/*.md |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
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.
코드 리뷰 코멘트
버전:
version: '3.8'
이 사용되었는데, 이는 Docker Compose v3.x의 버전입니다. 현재 후방 호환성을 위해 더 오래된 버전이 필요할 수 있습니다.서비스 이름:
redis-MQ
라는 서비스 이름은 다소 혼동을 줄 수 있습니다. Redis는 메시지 큐로 사용되지만, 사용자에게 이를 명확히 하기 위해 간단하게redis
로 변경하는 것이 좋습니다.컨테이너 이름:
container_name: redis
는 데이터베이스가 많은 환경에서 네임 충돌을 초래할 가능성이 있습니다.container_name
을 고유하게 설정해주는 것이 좋습니다.포트 설정: 포트를 노출할 때 보안 고려가 필요합니다. 만약 사용하지 않는 환경이라면 포트를 막는 것이 좋습니다.
볼륨 경로:
./redis.conf
와./redis-data
는 상대 경로입니다. 이 경로가 정확한지 확인해야 하며, 운영 환경에서 이로 인해 발생할 수 있는 문제가 없는지 검토해야 합니다.커맨드:
command
에 사용된 경로/usr/local/etc/redis/redis.conf
가 컨테이너 내에서 정확한 경로인지 확인이 필요합니다. 만약 잘못되면 Redis가 시작되지 않을 수 있습니다.Redis 설정 파일:
redis.conf
에서 추가적인 설정이 필요할 수 있습니다. 예를 들어, 보안과 관련된 설정(비밀번호 설정 등)이 필요할 수 있습니다.다시 말해, 주요 문제는 서비스 이름과 경로 확인에 있으며, 더욱 안전한 설정을 적용하는 것이 필요합니다.