Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 883e716

Browse files
committed
Use triliumnext/notes as image in docker-compose.yml
Also added comments to `docker-compose.yml` and removed unused volumes
1 parent 0b7bf53 commit 883e716

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

docker-compose.yml

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
1+
# TL;DR:
12
# Running `docker-compose up` will create/use the "trilium-data" directory in the user home
23
# Run `TRILIUM_DATA_DIR=/path/of/your/choice docker-compose up` to set a different directory
3-
version: '2.1'
4-
services:
5-
trilium:
6-
image: zadam/trilium
7-
restart: always
8-
environment:
9-
- TRILIUM_DATA_DIR=/home/node/trilium-data
10-
ports:
11-
- "8080:8080"
12-
volumes:
13-
- ${TRILIUM_DATA_DIR:-~/trilium-data}:/home/node/trilium-data
4+
# To run in the background, use `docker-compose up -d`
145

15-
volumes:
16-
trilium:
6+
services:
7+
trilium:
8+
# Optionally, replace `latest` with a version tag like `v0.90.3`
9+
# Using `latest` may cause unintended updates to the container
10+
image: triliumnext/notes:latest
11+
# Restart the container unless it was stopped by the user
12+
restart: unless-stopped
13+
environment:
14+
- TRILIUM_DATA_DIR=/home/node/trilium-data
15+
ports:
16+
# By default, Trilium will be available at http://localhost:8080
17+
# It will also be accessible at http://<host-ip>:8080
18+
# You might want to limit this with something like Docker Networks, reverse proxies, or firewall rules, such as UFW
19+
- '8080:8080'
20+
volumes:
21+
# Unless TRILIUM_DATA_DIR is set, the data will be stored in the "trilium-data" directory in the home directory.
22+
# This can also be changed with by replacing the line below with `- /path/of/your/choice:/home/node/trilium-data
23+
- ${TRILIUM_DATA_DIR:-~/trilium-data}:/home/node/trilium-data

0 commit comments

Comments
 (0)