From bfd0ab91c6a8e003065da1925d091334d998b82f Mon Sep 17 00:00:00 2001 From: cnphpbb Date: Fri, 9 Oct 2026 01:20:47 +0800 Subject: [PATCH] =?UTF-8?q?docs(dbSer):=20=E6=B7=BB=E5=8A=A0=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E7=94=9F=E6=88=90=E4=B8=8E=E6=9C=AC=E5=9C=B0=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E5=91=BD=E4=BB=A4=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dbSer/mysql/env.cfg.example | 2 ++ dbSer/mysql/prod.stack.yml | 1 + dbSer/postgres/env.cfg.example | 2 ++ 3 files changed, 5 insertions(+) diff --git a/dbSer/mysql/env.cfg.example b/dbSer/mysql/env.cfg.example index c904c32..ce7ef17 100644 --- a/dbSer/mysql/env.cfg.example +++ b/dbSer/mysql/env.cfg.example @@ -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 不提交) diff --git a/dbSer/mysql/prod.stack.yml b/dbSer/mysql/prod.stack.yml index f4927a7..94a3a2b 100644 --- a/dbSer/mysql/prod.stack.yml +++ b/dbSer/mysql/prod.stack.yml @@ -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: diff --git a/dbSer/postgres/env.cfg.example b/dbSer/postgres/env.cfg.example index a2cc69d..3f22e40 100644 --- a/dbSer/postgres/env.cfg.example +++ b/dbSer/postgres/env.cfg.example @@ -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 不提交)