mkdir -p /opt/trilium-cn
cd /opt/trilium-cn
version: '3'
services:
trilium-cn:
image: nriver/trilium-cn
restart: always
ports:
- "10012:8080"
volumes:
# 把同文件夹下的 trilium-data 目录映射到容器内
- /opt/trilium-cn:/root/trilium-data
environment:
# 环境变量表示容器内笔记数据的存储路径
- TRILIUM_DATA_DIR=/root/trilium-data
# 可选功能: 健康检查。需要启用的话,把下面的注释去掉
#healthcheck:
# test: ["CMD-SHELL", "curl --fail http://localhost:8080/api/health-check | jq -e '.status == "ok"' || exit 1"]
# interval: 30s
# timeout: 10s
# retries: 3
浏览器输入
ip:10012
选择第一个
https://github.com/Nriver/trilium-translation