Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Matrix Chat as Service With Element WebUI #4444

Open
wants to merge 10 commits into
base: next
Choose a base branch
from
6 changes: 6 additions & 0 deletions public/svgs/matrix-element.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions templates/compose/matrix-element.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# documentation: https://github.com/kamyargerami/matrix-docker
# slogan: An open network for secure, decentralised communication
# tags: real-time-messaging,secure-communication,peer-to-peer
# logo: svgs/matrix-element.svg
elmatadoor marked this conversation as resolved.
Show resolved Hide resolved

services:
synapse:
image: "docker.io/matrixdotorg/synapse:v1.84.1"
restart: unless-stopped
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not needed coolify adds this by default.

environment:
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
volumes:
- synapse_data:/data
depends_on:
- synapse_db
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure the health checks check for condition healthy of the resource.


element:
image: "vectorim/element-web:latest"
environment:
- SERVICE_FQDN_ELEMENT
restart: unless-stopped
volumes:
- element:/app

synapse_db:
image: "docker.io/postgres:14-alpine"
restart: unless-stopped
environment:
- POSTGRES_USER=${SERVICE_USER_POSTGRESQL}
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRESQL}
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
volumes:
- synapse_db_data:/var/lib/postgresql/data

coturn:
image: "instrumentisto/coturn:latest"
restart: "unless-stopped"
volumes:
- coturn:/etc/coturn

volumes:
elmatadoor marked this conversation as resolved.
Show resolved Hide resolved
synapse_data:
synapse_db_data:
coturn:
element: