mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
Updated Docker server installation (markdown)
parent
3383be2f89
commit
034eaf9c0f
@ -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.
|
Loading…
x
Reference in New Issue
Block a user