Element/Matrix Official Docker Install Method?
from a_fancy_kiwi@lemmy.world to selfhosted@lemmy.world on 11 Feb 20:50
https://lemmy.world/post/43025075

My friends are open to leaving Discord which has finally given me a reason to look into Element/Matrix. I found the install instructions and am immediately put off. Is this it? No official docker compose? 😞

#selfhosted

threaded - newest

artyom@piefed.social on 11 Feb 20:55 next collapse

https://hub.docker.com/r/jevolk/tuwunel

Shimitar@downonthestreet.eu on 11 Feb 20:57 collapse

Tuwunnel is a corporate-sponsored successor to Conduwuit.

I prefer Continuwuity which is a non for profit successor to Conduwuit.

Beside this, they are probably mostly the same

artyom@piefed.social on 11 Feb 21:00 collapse

Which corporation sponsors Tuwunnel?

unexposedhazard@discuss.tchncs.de on 11 Feb 21:16 next collapse

Idk but apparently the dev of tuwunel was a dick about the fork splitting.

Samsy@lemmy.ml on 12 Feb 05:20 collapse

Jees, what’s wrong with the original conduit?

Shimitar@downonthestreet.eu on 12 Feb 05:41 collapse

That is undisclosed but check the github page, last time I did, it was a one person job and he clearly wrote he got corporate money t do that

PabloSexcrowbar@piefed.social on 12 Feb 22:29 collapse

For what it’s worth, it sounds like it’s corporate sponsored rather than corporate owned, which is at least a little better in my opinion

Shimitar@downonthestreet.eu on 11 Feb 20:56 next collapse

Forget about synapse and the “official” method. Install Continuwuity a matrix server written in rust, much much more efficient than synapse.

I took some notes while installing it here wiki.gardiol.org/doku.php?id=matrix%3Aconduwuit

I didn’t use docker but directly installation is very easy, it’s a single executable.

a_fancy_kiwi@lemmy.world on 11 Feb 22:12 next collapse

I’ll look into it, thanks.

I’m still in the information gathering phase. Do you know if the element client works with the continuwuity server? Is it as easy as entering the domain, user, and password in the client?

30p87@feddit.org on 11 Feb 23:35 next collapse

Any client should be compatible with any server, if both are fairly up to date. Though, I never found a client nor server that are actually fully feature complete. The closest to that are synapse and element

Shimitar@downonthestreet.eu on 12 Feb 05:43 collapse

Yes both element and elementx and actually any matrix client. That’s the beauty of having standards

But its a pain because all clients from matrix. Org will push you to matrix. Org and need manual taps&clicks to select a different server when you sign up the first time. A bit annoying IMHO and maybe even fraudolent.

epyon22@sh.itjust.works on 11 Feb 23:07 next collapse

Oh man I need to look into this synapse is so slow

Eldaroth@lemmy.world on 12 Feb 06:45 next collapse

I saw you recommend Continuwuity on other posts as well. Was just wondering, what made you choose Continuwuity over Tuwunel?

I am asking because I used to host a Continuwuity Matrix Server until a year ago. Recently started to look into hosting a Matrix server once again and found that Tuwunel seems currently ahead of Continuwuity in regards to WebRTC (Element Call) implementation and the sliding sync thingy.

At least they have updated documentation when it comes to WebRTC and how to set it up.

Shimitar@downonthestreet.eu on 12 Feb 07:12 collapse

I also installed tuwunnel after conduwuit death. Moved to Continuwuity because of the community vs corporate sponsorship.

I don’t keep an eye on who is ahead, but I want to be sure I don’t have to migrate in the future so I don’t care for development speed, rather continued support and what if tuwunnel company money runs out?

x00z@lemmy.world on 13 Feb 00:58 collapse

You are recommending to follow your wiki article but it claims to not use it?

Note: Sadly, Conduwuit project has been abandoned by the current devs and archived. Conduwuit is deprecated, the following instructions are left for historical reference only, DO NOT FOLLOW.

Now I don’t know what to believe.

Shimitar@downonthestreet.eu on 13 Feb 01:58 collapse

Yes need to fix that wording its a leftover, done.

x00z@lemmy.world on 13 Feb 02:11 collapse

They picked it up again?

Shimitar@downonthestreet.eu on 13 Feb 05:25 collapse

Continuwuity was never discontinued, the note was for Conduwuit, I forgot to remove it after updated the article.

x00z@lemmy.world on 14 Feb 00:35 collapse

Oh I see. Thanks.

i_am_not_a_robot@discuss.tchncs.de on 11 Feb 21:09 next collapse

Helm is what is used for real world software deployments. It has its problems but it’s better than Docker Compose.

a_fancy_kiwi@lemmy.world on 11 Feb 21:54 collapse

Out of curiosity, what makes it better?

A quick search says it’s a package manger for kubernetes. Besides plex, everything I selfhost is just for me. Would you say helm/kubernetes is worth looking into for a hobbyist who doesn’t work in the tech field?

tofu@lemmy.nocturnal.garden on 11 Feb 22:28 next collapse

Absolutely no. Kubernetes has it’s benefits and it can make sense to get into it for tinkering etc, but if you just want to set up matrix and not learn an entire new system, stay away from it.

melroy@kbin.melroy.org on 11 Feb 23:18 collapse

I need to agree here. K8s is only for the real tech savvy people. I'd you are just starting with docker avoid k8s or k3s.

i_am_not_a_robot@discuss.tchncs.de on 12 Feb 03:20 next collapse

Kubernetes is much more complicated and powerful than Docker, and Docker Compose is more similar to the way you work directly with Kubernetes than it is to Helm, which adds in a templating system. Basically, from a Docker perspective, Helm allows you to configure your compose file, but not just by substituting variables. Helm can make structural changes such as completely adding or removing sections based on the variables used when loading the chart. The output of Helm is YAML, sort of like a compose file.

Kubernetes has a much more complicated system for describing workloads and their resources than Docker Compose, and it is extensible. For example, if you are running on AWS you can have Kubernetes attach EBS volumes to your pods, or if you’re on bare metal you might use LVM, and it’s not limited to things that Kubernetes natively understands like storage volumes: Cert Manager is a common piece of software that is deployed into Kubernetes that takes care of issuing and renewing TLS certificates for other software in Kubernetes.

I used to run Kubernetes at home with ArgoCD, but I’ve moved on to NixOS instead. NixOS is less powerful because it doesn’t have dynamic workload scheduling, but I don’t actually need dynamic workload scheduling or all the configuration necessary to facilitate dynamic workload scheduling in my house, and Nix is much nicer to work with than Helm’s gotmpl templating. Unless you like this kind of stuff or want to get into Kubernetes, you probably want to avoid it for running a few things on one host.

cecilkorik@lemmy.ca on 12 Feb 03:51 collapse

I deal with kubernetes daily for my job and it manages to melt my brain at least a few times a week. It’s not bad… it’s actually great… it’s just… a lot. Like, a lot a lot.

For what it’s worth, I do not use it at home, because I prefer to be getting paid when my brain is melting.

litchralee@sh.itjust.works on 11 Feb 21:15 next collapse

Firstly, I wish you the best of luck in your community’s journey away from Discord. This may be a good time to assess what your community needs from a new platform, since Discord targeted various use-cases that no single replacement platform can hope to replace in full. Instead, by identifying exactly what your group needs and doesn’t need, that will steer you in the right direction.

As for Element, bear in mind that their community and paid versions do not exactly target a hobbyist self-hosting clientele. Instead, Element is apparently geared more for enterprise on-premises deployment (like Slack, Atlassian JIRA, Asterisk PBX) and that’s probably why the community version is also based on Kubernetes. This doesn’t mean you can’t use it, but their assumptions about deployments are that you have an on-premises cloud.

Fortunately, there are other Matrix homeservers available, including one written in Rust that has both bare metal and Docker deployment instructions. Note that I’m not endorsing this implementation, but only know of it through this FOSDEM talk describing how they dealt with malicious actors.

As an aside, I have briefly considered Matrix before as a group communications platform, but was put off by their poor E2EE decisions, for both the main client implementation and in the protocol itself. Odd as it sounds, poor encryption is worse than no encryption, because of the false assurance it gives. If I did use Matrix, I would not enable E2EE because it doesn’t offer me many privacy guarantees, compared to say, Signal.

mlfh@lemmy.sdf.org on 11 Feb 21:47 collapse

This quote from your link on the main client e2ee issues captures the zeitgeist of modern tech so beautifully:

Please keep in mind that this website is a furry blog, first and foremost, that sometimes happens to cover security and cryptography topics.

ranslite@pie.dasneuland.de on 11 Feb 21:20 next collapse

Or try yunohost. Once installed yunohost is managing ssl, domains, install and update matrix and other things if wanted.

nykula@piefed.social on 12 Feb 00:46 collapse

Yes, setting up YunoHost on a new Debian VPS was a couple of commands, and having it install Synapse and Element was a few clicks in the UI plus a lot of waiting.

However. I thought of Element as an alternative to Slack or Telegram the way OP thinks of it as an alternative to Discord. I was wrong. Element competes with IRC. This is the only platform from which I’ve seen actual groups of people (FOSS projects) switch to Matrix. I think Matrix focuses on different usage needs than Discord, and trying it with willing Discord users will be an interesting exercise in seeing what perspectives they bring and what issues that raise, but the solution to their problem will be somewhere outside Matrix, and it will be in somewhat distant future, not with the current state of FOSS tools.

atzanteol@sh.itjust.works on 11 Feb 21:26 next collapse

12 pages of detailed documentation

Home Gamer: Is this it?

a_fancy_kiwi@lemmy.world on 11 Feb 22:01 collapse

Fair criticism. I just don’t have a lot of free time. I can invest in Element but I wanted to crowd source information to see if it was worth it or if there was an easier way. It doesn’t get much easier than Docker

scrubbles@poptalk.scrubbles.tech on 11 Feb 21:41 next collapse

I completely support you moving off of Discord, and I completely support you setting up Matrix. I tried a lot, I think it has the most feature parity. That being said, the biggest thing I regret when setting it up is that I went with Synapse for my backend Matrix server, when there are others.

I’ve heard very good things about Conduit (conduit.rs), mostly that it’s easier to stand up and easier to maintain.

Either way, I think it’s a smart move, and it’s worth the investment. It’s not the easiest to stand up, but operationally our communication should be our own. Expect trial and error, getting one piece up and running, then the next, and then the next. Celebrate small wins like “Today I got it running” and then “Today I got federation working”, and then “Now I have voice working!”. Otherwise it’s going to feel overwhelming.

I believe in the cause, so feel free to DM me if you have any questions, or send me a DM on Matrix :)

Oh, and a very useful tool - federationtester.matrix.org

This will tell you exactly what is wrong with your federation.

ProdigalFrog@slrpnk.net on 12 Feb 23:36 collapse

I tried a lot, I think it has the most feature parity.

Have you tried Movim? It has most of the essential features, like group video calls, screen sharing, and a better E2EE method than matrix (IMO, anyway). It’s also much easier to set up and host since it uses XMPP.

scrubbles@poptalk.scrubbles.tech on 13 Feb 00:00 collapse

My friend group has already moved to Matrix, and we’ve been happy

olorin99@kbin.earth on 11 Feb 22:31 next collapse

I'd recommend using https://github.com/spantaleev/matrix-docker-ansible-deploy.

motruck@lemmy.zip on 12 Feb 21:59 collapse

This is even the recommended way. If. You are rolling your own docker images for all the supporting containers you are going to have a bad time. OP I guarantee if you see this and shrug it off you’ll be back here. Many migrated to this from their custom docker set ups.

msokiovt@feddit.online on 12 Feb 01:18 next collapse

If you decide to do this, make sure you block matrix[dot]org, as they host and share a lot of CSAM on that homeserver.

Decronym@lemmy.decronym.xyz on 12 Feb 01:20 next collapse

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

Fewer Letters More Letters
CSAM Child Sexual Abuse Material
Git Popular version control system, primarily for code
HTTP Hypertext Transfer Protocol, the Web
IP Internet Protocol
LVM (Linux) Logical Volume Manager for filesystem mapping
SSL Secure Sockets Layer, for transparent encryption
TLS Transport Layer Security, supersedes SSL
VPS Virtual Private Server (opposed to shared hosting)
XMPP Extensible Messaging and Presence Protocol (‘Jabber’) for open instant messaging
k8s Kubernetes container management package
nginx Popular HTTP server

9 acronyms in this thread; the most compressed thread commented on today has 8 acronyms.

[Thread #85 for this comm, first seen 12th Feb 2026, 01:20] [FAQ] [Full list] [Contact] [Source code]

vane@lemmy.world on 12 Feb 05:20 next collapse

If you’re proficient it’s 30minutes

Something like this for server.

generate config

docker run -it --rm \
    -v <your-data-path>:/data \
    -e SYNAPSE_SERVER_NAME=<your-public-address-subdomain> \
    -e SYNAPSE_REPORT_STATS=no \
    matrixdotorg/synapse:v1.136.0 generate

run

docker run -d \
  --restart=always \
  --name synapse \
  -e SYNAPSE_REPORT_STATS=no \
  -v <your-data-path>:/data \
  -p 8008:8008 matrixdotorg/synapse:v1.136.0

register user

docker exec -ti synapse register_new_matrix_user http://localhost:8008/ -c /data/homeserver.yaml -u <username> -p <password> --exists-ok

Proxy it using ex. openresty / nginx

location / {
        proxy_pass    http://127.0.0.1:8008/;
        proxy_http_version 1.1;
        proxy_set_header    Upgrade         $http_upgrade;
        proxy_set_header    Connection      "upgrade";
        proxy_set_header    Host            $host;
        proxy_set_header    X-Real-IP       $remote_addr;
        proxy_set_header    X-Forwarded-for $remote_addr;
        proxy_connect_timeout 600;
        proxy_read_timeout 86400;
    }

For UI if you want element on your domain, download and unpack tar.gz from.
github.com/element-hq/element-web/releases

Point this location to your proxy server ex. openresty / nginx

location / {
        root /opt/element-v1.11.109;
        index index.html;
    }

Modify config.json inside /opt/element-v1.11.109 to point location to <your-public-address-subdomain>

By default it’s using sqlite if you want postgres or other database then modify homeserver.yaml to use postgres

captcha_incorrect@lemmy.world on 12 Feb 08:30 collapse

If you like compose files: www.composerize.com

docker run -it --rm -v <your-data-path>:/data -e SYNAPSE_SERVER_NAME=<your-public-address-subdomain> -e SYNAPSE_REPORT_STATS=no matrixdotorg/synapse:v1.136.0 generate:

name: <your project name>
services:
    synapse:
        stdin_open: true
        tty: true
        volumes:
            - <your-data-path>:/data
        environment:
            - SYNAPSE_SERVER_NAME=<your-public-address-subdomain>
            - SYNAPSE_REPORT_STATS=no
        image: matrixdotorg/synapse:v1.136.0
        command: generate

docker run -d --restart=always --name synapse -e SYNAPSE_REPORT_STATS=no -v <your-data-path>:/data -p 8008:8008 matrixdotorg/synapse:v1.136.0:

name: <your project name>
services:
    synapse:
        restart: always
        container_name: synapse
        environment:
            - SYNAPSE_REPORT_STATS=no
        volumes:
            - <your-data-path>:/data
        ports:
            - 8008:8008
        image: matrixdotorg/synapse:v1.136.0

vane@lemmy.world on 12 Feb 13:55 collapse

I don’t like compose files :)

captcha_incorrect@lemmy.world on 13 Feb 08:15 collapse

How do you manage your containers?

vane@lemmy.world on 13 Feb 11:44 collapse

I have a git repo with some directory convention and bash scripts. Ex stop is just

#!/bin/bash
name=synapse
docker stop $name
docker rm $name

etc. depending on what actions I need to do against container I have bash script for that and if I need to perform same action against other container I just copy paste this file and change name variable. I pull this repo to my containers host and just type ./bin/synapse/stop and I stop synapse.

Hope that makes sense.

captcha_incorrect@lemmy.world on 27 Feb 10:07 collapse

Have you considered replace the name with input from stdin? So instead of name=synapse you could do name=$1 and have one script to use for all containers.

vane@lemmy.world on 02 Mar 10:58 collapse

yeah but I don’t mind having duplicated scripts, it’s just easier to go to single script and don’t have to worry about everything else, I keep them like bin/synapse/run, bin/synapse/stop, bin/synapse/logs etc. What I haven’t figured out is better way to keep all ports in one place instead of ports.md file but on the other hand it’s not like I have thousands of containers running.

captcha_incorrect@lemmy.world on 02 Mar 11:31 collapse

it’s not like I have thousands of containers running

I feel you. I have ~20 container files (some are multiple containers in one file, e.g. db and web server) and I seldom have to do changes to them. Once properly configured, I don’t really have to do anything.

KarnaSubarna@lemmy.ml on 12 Feb 07:46 next collapse

github.com/element-hq/…/docker-compose.yml

bridgeenjoyer@sh.itjust.works on 13 Feb 04:03 next collapse

Element has no gif keyboard just so you’re aware. Huge dealbreaker.

EncryptKeeper@lemmy.world on 13 Feb 05:54 collapse

I’ve never encountered a gif keyboard that worked well so no big loss.

CarstenBoll@feddit.dk on 13 Feb 08:36 next collapse

My keyboard on android has one anyway, so I don’t need a built-in one.

bridgeenjoyer@sh.itjust.works on 13 Feb 16:27 collapse

But what about on PC? We mostly chat on pc…

CarstenBoll@feddit.dk on 13 Feb 16:52 next collapse

Well, then I do without 😊 or Google some gifs.

CarstenBoll@feddit.dk on 13 Feb 17:50 collapse

I do wish they had a decent gif keyboard, but it seems they are against implementing it due to security concerns. I accept that.

bridgeenjoyer@sh.itjust.works on 13 Feb 16:26 collapse

I mean, discord gifs work perfectly…and my friends rely HEAVILY it.

yardratianSoma@lemmy.ca on 20 Feb 13:51 collapse

I was scared off a couple years ago when I attempted to host it myself. I took a break from selfhosting, but now I’m back, and from what I learned in the past, I know now not to torture myself swimming upstream when there are far easier downstream currents to follow.

I’m looking at conduit but I’m currently writing up a doc to plan out the process, and understand it before I actually deploy anything. I don’t want to open ports, don’t need federation and don’t need encryption, since I’ll be using tailscale to host a private server to only members of my tailnet.

I’ll report back, either here or in the main community, because I don’t want to expose ports, rent a VPS or use ansible for a simple private server for less than 10 people.