From 78b6614eea8a66733ff569011b2870240a6ec0cc Mon Sep 17 00:00:00 2001 From: zadam Date: Tue, 3 Oct 2023 11:21:14 +0200 Subject: [PATCH] fix docker-compose.yml #2239 --- docker-compose.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index ccfff054f..6798574ac 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,3 +1,5 @@ +# 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: @@ -8,7 +10,7 @@ services: ports: - "8080:8080" volumes: - - trilium:/home/node/trilium-data + - ${TRILIUM_DATA_DIR:-~/trilium-data}:/home/node/trilium-data volumes: trilium: