2023-10-03 17:21:14 +08:00
|
|
|
# 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
|
2019-04-14 21:24:35 +08:00
|
|
|
version: '2.1'
|
|
|
|
services:
|
|
|
|
trilium:
|
|
|
|
image: zadam/trilium
|
|
|
|
restart: always
|
|
|
|
environment:
|
2022-09-24 09:12:50 +08:00
|
|
|
- TRILIUM_DATA_DIR=/home/node/trilium-data
|
2019-04-14 21:24:35 +08:00
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
|
|
|
volumes:
|
2023-10-03 17:21:14 +08:00
|
|
|
- ${TRILIUM_DATA_DIR:-~/trilium-data}:/home/node/trilium-data
|
2019-04-14 21:24:35 +08:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
trilium:
|