Skip to content

Commit 3962ec4

Browse files
committed
update: quick update md file & env docker
1 parent edcb435 commit 3962ec4

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

PULL_REQUEST_RULES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Select the appropriate options:
7171

7272
- Use clear, **conversational but concise** explanations
7373
- Use correct heading hierarchy (`#`, `##`, `###`, etc.)
74-
- Name files using lowercase and hyphens: `binary-search.md`
74+
- Name files using lowercase and underscore: `binary_search.md`
7575
- Place content in the appropriate folder (`algorithms/`, `design-patterns/`, etc.)
7676
- For translations, use the `i18n/[language_code]/` structure, mirroring the main docs structure
7777
- Update SUMMARY.md to include new content or translations

PULL_REQUEST_RULES_vi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ Chọn các tùy chọn thích hợp:
7171

7272
- Trình bày **ngắn gọn, dễ hiểu, gần gũi**
7373
- Sử dụng đúng cấp độ tiêu đề: `#`, `##`, `###`,...
74-
- Đặt tên file bằng chữ thường, dùng dấu gạch ngang: `binary-search.md`
75-
- Đặt đúng thư mục chuyên đề (`algorithms/`, `design-patterns/`, `aws/`,...)
74+
- Đặt tên file bằng chữ thường, dùng dấu gạch dưới: `binary_search.md`
75+
- Đặt đúng thư mục docs (`docs/algorithms/`, `docs/design-patterns/`, `docs/aws/`,...)
7676
- Đối với bản dịch, sử dụng cấu trúc `i18n/[mã_ngôn_ngữ]/`, phản ánh cấu trúc thư mục chính
7777
- Cập nhật SUMMARY.md để bao gồm nội dung mới hoặc bản dịch
7878

docker/run-db-snippet.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,31 +70,31 @@ esac
7070
case "$DB_TYPE" in
7171
mysql)
7272
DB_HOST="tech-notes-mysql"
73-
DB_PORT="3306"
73+
DB_PORT="${MYSQL_PORT_EXPOSE:-3306}"
7474
DB_USER="${MYSQL_USER:-user}"
7575
DB_PASS="${MYSQL_PASSWORD:-password}"
7676
DB_NAME="${MYSQL_DATABASE:-tech_notes}"
7777
DB_CONN_STR="mysql://$DB_USER:$DB_PASS@$DB_HOST:$DB_PORT/$DB_NAME"
7878
;;
7979
postgres)
8080
DB_HOST="tech-notes-postgres"
81-
DB_PORT="5432"
81+
DB_PORT="${POSTGRES_PORT_EXPOSE:-5432}"
8282
DB_USER="${POSTGRES_USER:-user}"
8383
DB_PASS="${POSTGRES_PASSWORD:-password}"
8484
DB_NAME="${POSTGRES_DB:-tech_notes}"
8585
DB_CONN_STR="postgresql://$DB_USER:$DB_PASS@$DB_HOST:$DB_PORT/$DB_NAME"
8686
;;
8787
mongodb)
8888
DB_HOST="tech-notes-mongodb"
89-
DB_PORT="27017"
89+
DB_PORT="${MONGO_PORT_EXPOSE:-27017}"
9090
DB_USER="${MONGO_USER:-user}"
9191
DB_PASS="${MONGO_PASSWORD:-password}"
9292
DB_NAME="${MONGO_INITDB_DATABASE:-tech_notes}"
9393
DB_CONN_STR="mongodb://$DB_USER:$DB_PASS@$DB_HOST:$DB_PORT/$DB_NAME"
9494
;;
9595
redis)
9696
DB_HOST="tech-notes-redis"
97-
DB_PORT="6379"
97+
DB_PORT="${REDIS_PORT_EXPOSE:-6379}"
9898
DB_PASS="${REDIS_PASSWORD:-}"
9999
if [ -n "$DB_PASS" ]; then
100100
DB_CONN_STR="redis://:$DB_PASS@$DB_HOST:$DB_PORT"

0 commit comments

Comments
 (0)