|
1 |
| -# TL;DR: |
2 | 1 | # Running `docker-compose up` will create/use the "trilium-data" directory in the user home
|
3 | 2 | # Run `TRILIUM_DATA_DIR=/path/of/your/choice docker-compose up` to set a different directory
|
4 | 3 | # To run in the background, use `docker-compose up -d`
|
5 |
| - |
6 | 4 | 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 |
| 5 | + trilium: |
| 6 | + # Optionally, replace `latest` with a version tag like `v0.90.3` |
| 7 | + # Using `latest` may cause unintended updates to the container |
| 8 | + image: triliumnext/notes:latest |
| 9 | + # Restart the container unless it was stopped by the user |
| 10 | + restart: unless-stopped` |
| 11 | + environment: |
| 12 | + - TRILIUM_DATA_DIR=/home/node/trilium-data |
| 13 | + ports: |
| 14 | + # By default, Trilium will be available at http://localhost:8080 |
| 15 | + # It will also be accessible at http://<host-ip>:8080 |
| 16 | + # You might want to limit this with something like Docker Networks, reverse proxies, or firewall rules, such as UFW |
| 17 | + - '8080:8080' |
| 18 | + volumes: |
| 19 | + # Unless TRILIUM_DATA_DIR is set, the data will be stored in the "trilium-data" directory in the home directory. |
| 20 | + # This can also be changed with by replacing the line below with `- /path/of/your/choice:/home/node/trilium-data |
| 21 | + - ${TRILIUM_DATA_DIR:-~/trilium-data}:/home/node/trilium-data |
0 commit comments