# element-docker-demo element-docker-demo is a minimal example of how to rapidly stand up a Matrix 2.0 stack on macOS or Linux using Docker, featuring: * Element Web * Element Call * Synapse * Matrix Authentication Service * LiveKit * Postgres * nginx + letsencrypt / mkcert for TLS. This is **not** intended for serious production usage, but instead as a tool for curious sysadmins to easily experiment with Matrix 2.0 in a simple docker compose environment. As of Nov 2024, it's considered beta. In particular, this has: * No support, security or maintenance guarantees whatsoever * No high availability, horizontal scalability, elastic scaling, clustering, backup etc. * No admin interface * No monitoring * No fancy config management (eg ansible), just env vars and templates * No fancy secret management (stored in plaintext on disk) * No UDP traffic or TURN for LiveKit (all traffic is tunnelled over TCP for simplicity) * No push server, integration manager, integrations, or identity lookup server For production-grade Matrix from Element, please see https://element.io/server-suite (ESS). ## To run 1. Install [Docker Compose](https://docs.docker.com/compose/install/). 2. If you're running on your local workstation, then [install mkcert](https://github.com/FiloSottile/mkcert#installation) to manage TLS. Then: ``` ./setup.sh # Point DNS for *.domain at your docker host, # Or if running on localhost with mkcert: # source .env; sudo sh -c "echo 127.0.0.1 $DOMAINS >> /etc/hosts" docker compose up # go to https://element on your domain. ```  Watch the full video: