From 1449ce9bf07ccf656a60b11379456cbe7826f1ac Mon Sep 17 00:00:00 2001 From: Jake Kasper Date: Mon, 25 Aug 2025 12:12:57 -0400 Subject: [PATCH] trilium --- QNAP/TrillumNext/docker-compose.yml | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 QNAP/TrillumNext/docker-compose.yml diff --git a/QNAP/TrillumNext/docker-compose.yml b/QNAP/TrillumNext/docker-compose.yml new file mode 100644 index 0000000..c445616 --- /dev/null +++ b/QNAP/TrillumNext/docker-compose.yml @@ -0,0 +1,33 @@ +# Running `docker-compose up` will create/use the "trilium-data" directory in the user home +# Run `TRILIUM_DATA_DIR=/path/of/your/choice docker-compose up` to set a different directory +# To run in the background, use `docker-compose up -d` +services: + trilium: + # Optionally, replace `latest` with a version tag like `v0.90.3` + # Using `latest` may cause unintended updates to the container + image: triliumnext/trilium:latest + # Restart the container unless it was stopped by the user + restart: unless-stopped + environment: + - TRILIUM_DATA_DIR=/home/node/trilium-data + ports: + # By default, Trilium will be available at http://localhost:8080 + # It will also be accessible at http://:8080 + # You might want to limit this with something like Docker Networks, reverse proxies, or firewall rules, + # however be aware that using UFW is known to not work with default Docker installations, see: + # https://docs.docker.com/engine/network/packet-filtering-firewalls/#docker-and-ufw + - '8099:8080' + labels: + - "traefik.enable=true" + - "traefik.http.routers.trilium.rule=Host(`trilium.kaspers.us`)" # ⚠️ UPDATE to your domain + - "traefik.http.routers.trilium.entrypoints=websecure" # Assumes your HTTP entrypoint is 'web' + - "traefik.http.services.trilium.loadbalancer.server.port=8080" + - "traefik.docker.network=proxy" # ⚠️ UPDATE this to your Traefik network name if different + - "traefik.http.routers.trilium.tls=true" + - "traefik.http.routers.trilium.tls.certresolver=letsencrypt" + volumes: + # Unless TRILIUM_DATA_DIR is set, the data will be stored in the "trilium-data" directory in the home directory. + # This can also be changed with by replacing the line below with `- /path/of/your/choice:/home/node/trilium-data + - /share/Media/container-station-data/trilium:/home/node/trilium-data + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro