docs(dbSer): 添加密码生成与本地运行命令示例

This commit is contained in:
cnphpbb
2026-10-09 01:20:47 +08:00
parent cc215adc00
commit bfd0ab91c6
3 changed files with 5 additions and 0 deletions
+2
View File
@@ -7,6 +7,8 @@
# cp env.cfg.example env.cfg
# $EDITOR env.cfg # 填入真实密码/密钥后保存
# docker compose -p mysql --env-file ./env.cfg -f ./stack.yml up -d
# 生成密码
# openssl rand -base64 32 | tr -dc 'A-Za-z0-9!$#%^_+=' | head -c 24; echo
#
# ============================================================
# ⚠️ 敏感值(必填,env.cfg 不提交)
+1
View File
@@ -1,5 +1,6 @@
# Pull:: docker compose --env-file ./dbSer/mysql/env.cfg -f ./dbSer/mysql/prod.stack.yml pull
# Run:: docker compose -p mysql --env-file ./dbSer/mysql/env.cfg -f ./dbSer/mysql/prod.stack.yml up -d
# Run-Local:: docker compose -p mysql --env-file ./env.cfg -f ./prod.stack.yml up -d
services:
mysql:
+2
View File
@@ -7,6 +7,8 @@
# cp env.cfg.example env.cfg
# $EDITOR env.cfg # 填入真实密码/密钥后保存
# docker compose -p postgres --env-file ./env.cfg -f ./stack.yml up -d
# 生成密码
# openssl rand -base64 32 | tr -dc 'A-Za-z0-9!$#%^_+=' | head -c 24; echo
#
# ============================================================
# ⚠️ 敏感值(必填,env.cfg 不提交)