services: trilium: # Optionally, replace `latest` with a version tag like `v0.90.3` # Using `latest` may cause unintended updates to the container image: triliumnext/notes:latest # Restart the container unless it was stopped by the user restart: unless-stopped environment: - TRILIUM_DATA_DIR=/home/node/trilium-data ports: # By default, Trilium will be available at http://localhost:8080 # It will also be accessible at http://<host-ip>:8080 # You might want to limit this with something like Docker Networks, reverse proxies, or firewall rules, such as UFW - 2420:8080 volumes: # Unless TRILIUM_DATA_DIR is set, the data will be stored in the "trilium-data" directory in the home directory. # This can also be changed with by replacing the line below with `- /path/of/your/choice:/home/node/trilium-data - /mnt/scratch/docker/data/trillium/trillium-data:/home/node/trilium-data networks: {}