From d06ffe3bbe0a8cddd926e2e5396450d7a6232082 Mon Sep 17 00:00:00 2001 From: Derek Cooper Date: Thu, 28 May 2026 22:35:08 -0700 Subject: [PATCH] added trilium --- Trilium/.env.example | 13 +++++++++++++ Trilium/docker-compose-nfs.yaml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 Trilium/.env.example create mode 100644 Trilium/docker-compose-nfs.yaml diff --git a/Trilium/.env.example b/Trilium/.env.example new file mode 100644 index 0000000..e4d17de --- /dev/null +++ b/Trilium/.env.example @@ -0,0 +1,13 @@ +# Trilium Notes - Environment Variables + +# Docker image tag to deploy (e.g. latest, v0.90.12) +TRILIUM_VERSION=latest + +# Host port to expose the Trilium web UI on +TRILIUM_PORT=8080 + +# IP address or hostname of the NFS server hosting the Trilium data volume +TRILIUM_NFS_SERVER=192.168.1.100 + +# NFS export path on the server (e.g. /mnt/pool/trilium-data) +TRILIUM_NFS_DEVICE=:/mnt/pool/trilium-data diff --git a/Trilium/docker-compose-nfs.yaml b/Trilium/docker-compose-nfs.yaml new file mode 100644 index 0000000..ca885a3 --- /dev/null +++ b/Trilium/docker-compose-nfs.yaml @@ -0,0 +1,30 @@ +services: + app: + image: triliumnext/trilium:${TRILIUM_VERSION:-latest} + container_name: trilium-app + environment: + - TRILIUM_DATA_DIR=/home/node/trilium-data + ports: + - ${TRILIUM_PORT:-8080}:8080 + volumes: + - trilium-data:/home/node/trilium-data + healthcheck: + test: ["CMD-SHELL", "nc -z 127.0.0.1 8080 || exit 1"] + interval: 10s + timeout: 5s + retries: 3 + start_period: 90s + deploy: + resources: + limits: + memory: 512m + restart: unless-stopped + +volumes: + trilium-data: + name: trilium-data + driver: local + driver_opts: + type: nfs + o: "addr=${TRILIUM_NFS_SERVER},rw,noatime,rsize=65536,wsize=65536,timeo=600,nfsvers=4" + device: "${TRILIUM_NFS_DEVICE}" \ No newline at end of file