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