From e5bc8452ed52e3395240a5aecc838431b73fbc03 Mon Sep 17 00:00:00 2001 From: sickprodigy Date: Fri, 21 Nov 2025 19:31:14 -0500 Subject: [PATCH] Add docker-compose configuration for Trilium service --- trilium/docker-compose.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 trilium/docker-compose.yml diff --git a/trilium/docker-compose.yml b/trilium/docker-compose.yml new file mode 100644 index 0000000..b644df7 --- /dev/null +++ b/trilium/docker-compose.yml @@ -0,0 +1,20 @@ +# 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 +version: '2.1' +services: + trilium: + container_name: trilium + image: zadam/trilium + restart: always + environment: + - TRILIUM_DATA_DIR=/home/node/trilium-data + ports: + - "8712:8080" + volumes: + - /docker-containers/trilium:/home/node/trilium-data + networks: # Specify network for container + - homelab + +networks: # I don't know why but you have to specify the network 2x. In service, and in this tag area.. + homelab: + external: true # This option causes compose to join the above network instead of making a _default one (supposedly) also forces to join instead of creating one