feat(memos): 添加 env.cfg.example 环境变量模板

Signed-off-by: cnphpbb <moqiruyi@126.com>
This commit is contained in:
2026-06-13 01:42:54 +08:00
parent b908f39c23
commit 88512509cd

20
memos/env.cfg.example Normal file
View File

@@ -0,0 +1,20 @@
# ============================================================
# Memos 部署 — 公共环境变量
# 复制为 env.cfg 后填入真实值env.cfg 已在 .gitignore 中忽略
# ============================================================
#
# 使用方式:
# cp env.cfg.example env.cfg
# # 数据库相关变量在 db-<env>.cnf 中独立配置(参考 db-184.cnf
# docker compose -p memos --env-file ./env.cfg --env-file ./db-61.cnf -f ./prod.stack.yml up -d
# ---------- 镜像 ----------
# Memos 版本号
IMAGE_TAG_VER=0.28.0
# 完整镜像引用私有仓库示例hub.tp229.com:3500/neosmemo/memos:${IMAGE_TAG_VER}
IMAGE_TAG=neosmemo/memos:${IMAGE_TAG_VER}
# ---------- 数据卷 ----------
# 宿主机持久化目录,会挂载到容器 /var/opt/memos
# 部署前手动创建mkdir -pv /data/volumes/memos/data
Volumes_Path=/data/volumes/memos