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 不提交)