开源Docmost知识库管理工具

发布于:2025-07-19 ⋅ 阅读:(21) ⋅ 点赞:(0)

Docmost是什么

Docmost 是一个开源的协作 wiki 和文档软件。它是 Confluence 和 Notion 的开源替代方案。

核心功能

  • 主开发语言:主要使用 TypeScript 开发(性能好,扩展性强)
  • 实时协作: 支持多人同时编辑文档,像 Google Docs 一样流畅。
  • 可视化工具支持: 内置支持 Draw.io、Excalidraw、Mermaid 等画图工具,轻松制作专业文档。
  • 权限管理: 可以灵活管理文档的访问权限,满足企业级安全需求。
  • 全文搜索: 强大的搜索引擎让你秒找到需要的内容,再也不用翻半天。
  • 文档历史记录: 支持版本管理,可以回溯任何时间段的文档内容。
  • 多种嵌入功能: 能嵌入外部资源,比如 Airtable、Loom、Miro 等,让文档不仅是文字,还更直观。
  • 文件附件: 方便上传和管理图片、PDF 等文件。
  • 团队评论: 支持文档实时评论,提升团队沟通效率。

安装

确保你安装了Docker和Docker Compose

yum install git
cd /opt/
git clone https://github.com/docmost/docmost.git
cd /opt/docmost/
docker-compose up -d

应用报错

需要调整docker-compose.yml 里的APP_SECRET,不调整会报如下错误
应用(Node.js 服务)在启动时检测到 APP_SECRET 环境变量不符合要求。错误信息明确指出两个问题:
APP_SECRET 不能是默认占位符值 “REPLACE_WITH_LONG_SECRET”
APP_SECRET 长度必须至少为 32 个字符

The Environment variables has failed the following validations:
{"isNotIn":"APP_SECRET should not be one of the following values: REPLACE_WITH_LONG_SECRET","minLength":"APP_SECRET must be longer than or equal to 32 characters"}
Please fix the environment variables and try again. Exiting program...
/app/apps/server:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  server@0.21.0 start:prod: `cross-env NODE_ENV=production node dist/main`
Exit status 1
 ELIFECYCLE  Command failed with exit code 1.

生成安全的 APP_SECRET

openssl rand -base64 64

在这里插入图片描述

vim docker-compose.yml
APP_SECRET: 'uBQCWW8Ot9bW+fRSdUaSTHZeS+w8GVmemODaV+S4I2aWr3+cNIPkGl9XiRLNOnBK'

在这里插入图片描述

镜像拉取报错

如果镜像无法下载,调整docker 的镜像地址

{
"registry-mirrors": [
"https://dockerpull.com",
"https://dockerproxy.cn",
"https://docker.loli.voto",
"https://docker.chenby.cn",
"https://docker-cf.registry.cyou",
"https://docker.m.daocloud.io",
"https://docker.ketches.cn",
"https://docker.1panel.dev",
"https://docker.1panel.live",
"https://docker.rainbond.cc",
"https://hub.rat.dev",
"https://docker.aityp.com/",
"https://docker.catiz.eu.org/"
]

使用

http://localhost:3000
调整成中文
在这里插入图片描述


网站公告

今日签到

点亮在社区的每一天
去签到