私有化的中文笔记工具&个人知识库,极空间Docker部署中文版『Trilium Notes』
1.SSH拉取:docker pull nriver/trilium-cn
- root@anmkj:~# docker pull nriver/trilium-cn
- Using default tag: latest
- latest: Pulling from nriver/trilium-cn
- c926b61bad3b: Pull complete
- 3ebae63ae1d8: Pull complete
- 4df6e7e40a3f: Pull complete
- bd5b864d1249: Pull complete
- 289f2b695bb4: Pull complete
- 4f4fb700ef54: Pull complete
- e78c2afbce21: Pull complete
- Digest: sha256:ca85b660b0c50b9b7d5b74a16599a5a2851c976b369f2b22c82d756f11b07e2a
- Status: Downloaded newer image for nriver/trilium-cn:latest
- docker.io/nriver/trilium-cn:latest
- root@anmkj:~#
复制代码 2.安装:
△ 【文件夹路径】这里,咱们需要手动添加以下映射关系(直接添加文件夹即可):docker/trilium-data:/root/trilium-data # 冒号前面映射新建的“trilium-data”子文件夹 △ 端口”这里设置本地端口不冲突即可。
△ “环境”这里需要手动添加一行环境变量:TRILIUM_DATA_DIR=/root/trilium-data # 这里的环境变量表示容器内笔记数据的存储路径 其它基本没啥可修改的,直接点“应用”完成容器部署。
|