From 034eaf9c0f26d6f33470c218ae0b6959b95e8ba0 Mon Sep 17 00:00:00 2001 From: zadam Date: Sun, 12 Jun 2022 19:46:15 +0200 Subject: [PATCH] Updated Docker server installation (markdown) --- ...allation.md => Docker-server-installation.md | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) rename Docker server installation.md => Docker-server-installation.md (84%) diff --git a/Docker server installation.md b/Docker-server-installation.md similarity index 84% rename from Docker server installation.md rename to Docker-server-installation.md index 0e38923..591d732 100644 --- a/Docker server installation.md +++ b/Docker-server-installation.md @@ -3,30 +3,25 @@ Trilium can be run as docker image. This is recommended way to deploy Trilium on Official docker images are published on docker hub for **AMD64**, **ARMv6**, **ARMv7** and **ARMv8/64**: https://hub.docker.com/r/zadam/trilium/ ## Prerequisites -To start you will need to have docker installed on your computer. Here are two guides that can help: +To start, you will need to have docker installed on your computer. Here are two guides that can help: - https://docs.docker.com/engine/install/ubuntu/ - https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04 +Trilium docker container requires running as root, check if this is possible in your environment. + ## Pull image ~~~~ docker pull zadam/trilium:[VERSION] ~~~~ -Replace [VERSION] for actual latest version or use "series" tag - e.g. `0.48-latest`. +Replace [VERSION] for actual latest version or use "series" tag - e.g. `0.52-latest`. -**It's not recommended to use "latest" tag since it may upgrade your Trilium instance to new minor version which may potentially break your sync setup or cause other issues.** +**It's not recommended to use "latest" tag since it may upgrade your Trilium instance to a new minor version, which may potentially break your sync setup or cause other issues.** ## Prepare data directory on the host system -Trilium needs a directory where it can store its data, this then needs to be mounted into the docker container. The container runs as user "node" so we need to make the directory available to this user: - -``` -mkdir ~/trilium-data -chmod 777 ~/trilium-data -``` - -Since this effectively allows reading/writing this directory to any user on the system, it's recommended to do this on only single-user systems. This directory will be used (mounted) below. +Trilium needs a directory where it can store its data, this then needs to be mounted into the docker container. The container needs to runs as a root to be able to access it in write mode. ## Run image These commands mount the volume to the host system so that trilium's data (most importantly [[document]]) is persisted and not cleared after container stops.