30 lines
753 B
YAML
30 lines
753 B
YAML
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}" |