mirror of
https://github.com/zadam/trilium.git
synced 2024-12-27 01:34:05 +08:00
16 lines
465 B
YAML
16 lines
465 B
YAML
# 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:
|
|
image: zadam/trilium
|
|
restart: always
|
|
environment:
|
|
- TRILIUM_DATA_DIR=/home/node/trilium-data
|
|
ports:
|
|
- "8080:8080"
|
|
volumes:
|
|
- ${TRILIUM_DATA_DIR:-~/trilium-data}:/home/node/trilium-data
|
|
|
|
volumes:
|
|
trilium:
|