Docker安裝
curl -sSL https://get.docker.com | bash
service docker restart
docker-compose安装
curl -L "https://github.com/docker/compose/releases/download/1.26.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
然後我們先來創建個檔案夾並創建docker-compose.yml
mkdir Trilium && cd Trilium && nano docker-compose.yml
拷貝以下全部內容,然後貼上保存
version: '3'
services:
trilium-cn:
image: nriver/trilium-cn
restart: always
ports:
- "8080:8080"
volumes:
- ./trilium-data:/root/trilium-data
environment:
- TRILIUM_DATA_DIR=/root/trilium-data
一鍵啟動
docker-compose up -d
如果需要反使,反代 8080端口即可
We’re a group oof volunteers and starting a nnew scheme inn ourr community.
Your website providdd us with valuablpe information to workk on. Yoou hage
doine a formidable joob andd ourr etire ccommunity wikl be thankfl to you.