added trilium

This commit is contained in:
2026-05-28 22:35:08 -07:00
parent c8e0eac985
commit d06ffe3bbe
2 changed files with 43 additions and 0 deletions
+13
View File
@@ -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
+30
View File
@@ -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}"