Sample Matrix swarm deployment compose file #387

Closed
opened 2026-02-15 07:12:34 +00:00 by jason.woltje · 0 comments
Owner

Summary

Provide a sample docker-compose.sample.matrix.yml in the docker/ folder for deploying Synapse + Element as standalone swarm infrastructure.

Context

Matrix (Synapse + Element) is separate infrastructure from Mosaic Stack — same pattern as Authentik. Users deploy it independently and point Mosaic at it via env vars.

This sample file helps users deploy their Matrix homeserver on Docker Swarm (e.g., via Portainer), with Traefik integration matching the existing Stack conventions.

What's Included

  • Synapse — Matrix homeserver with Traefik labels, health checks, PostgreSQL dependency
  • Element Web — Matrix client with Traefik labels
  • PostgreSQL — Dedicated Synapse database (separate from Mosaic's PostgreSQL)
  • coturn — Optional TURN/STUN server for VoIP (commented out)

File Location

docker/docker-compose.sample.matrix.yml

Documentation

The file header includes:

  • Portainer deployment instructions
  • CLI swarm deployment instructions
  • Post-deploy setup (Synapse config generation, bot account creation, access token)
  • Environment variable reference
  • Instructions for connecting to Mosaic Stack

Status

DONE — File created at docker/docker-compose.sample.matrix.yml

Refs

## Summary Provide a sample `docker-compose.sample.matrix.yml` in the `docker/` folder for deploying Synapse + Element as standalone swarm infrastructure. ## Context Matrix (Synapse + Element) is **separate infrastructure** from Mosaic Stack — same pattern as Authentik. Users deploy it independently and point Mosaic at it via env vars. This sample file helps users deploy their Matrix homeserver on Docker Swarm (e.g., via Portainer), with Traefik integration matching the existing Stack conventions. ## What's Included - **Synapse** — Matrix homeserver with Traefik labels, health checks, PostgreSQL dependency - **Element Web** — Matrix client with Traefik labels - **PostgreSQL** — Dedicated Synapse database (separate from Mosaic's PostgreSQL) - **coturn** — Optional TURN/STUN server for VoIP (commented out) ## File Location `docker/docker-compose.sample.matrix.yml` ## Documentation The file header includes: - Portainer deployment instructions - CLI swarm deployment instructions - Post-deploy setup (Synapse config generation, bot account creation, access token) - Environment variable reference - Instructions for connecting to Mosaic Stack ## Status **DONE** — File created at `docker/docker-compose.sample.matrix.yml` ## Refs - Pattern: `docker/docker-compose.example.external.yml`, `docker/docker-compose.example.turnkey.yml` - EPIC: #377 - Related: #384 (dev compose)
jason.woltje added the devops label 2026-02-15 07:12:34 +00:00
jason.woltje added this to the M12-MatrixBridge (0.0.12) milestone 2026-02-15 07:33:09 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaic/stack#387