Setting up trilium docker server access from anywhere #3006
-
I am trying to have a setup where a docker container is running on one machine and a couple desktop clients (from different or same machine) sync to the server. I ran the command mentioned in the wiki: How does a client now connect to this container over HTTP? In other words, what server address do I provide in the sync configuration of the client? My understanding so far is that I'd need to attach the running docker container to a pulic host name and use that hostname as server address but couldn't find instructions for that in the wiki or discussions. Is there a simpler way to sync across multiple devices ? I understand using HTTPS and setting up certificates would also be needed, but before that I'm trying to have it woking over HTTP. Update: By using
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
If the client and server are in the same LAN, you can use the hostname of the server (see
https://trilium.cc/ is the simplest option. |
Beta Was this translation helpful? Give feedback.
If the client and server are in the same LAN, you can use the hostname of the server (see
/etc/hostname
). The port is determined by the docker command:[...] -p 0.0.0.0:12345:8080 [...]
would open port 12345.If you need to access the sync server over the internet, the setup will be more involved.. are you running your sync server in the cloud?
https://trilium.cc/ is the simplest option.