From 3e94bac21f36d6b8957b8f5a010388a6216a6e10 Mon Sep 17 00:00:00 2001 From: sylvain Date: Thu, 1 May 2025 13:39:18 +0000 Subject: [PATCH] Ajouter synapse.yml --- synapse.yml | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 synapse.yml diff --git a/synapse.yml b/synapse.yml new file mode 100644 index 0000000..4716658 --- /dev/null +++ b/synapse.yml @@ -0,0 +1,68 @@ +version: '3.8' + +services: + synapse: + image: matrixdotorg/synapse:latest + environment: + - SYNAPSE_SERVER_NAME=domaine.com + - SYNAPSE_REPORT_STATS=no + - SYNAPSE_CONFIG_PATH=/data/homeserver.yaml + - POSTGRES_DB=synapse + - POSTGRES_USER=synapse + - POSTGRES_PASSWORD=gabuzomeu + - POSTGRES_HOST=ipdepostgres + - POSTGRES_PORT=5432 + - VIRTUAL_HOST=domaine.com + - VIRTUAL_PORT=8008 + - LETSENCRYPT_HOST=domaine.com + - LETSENCRYPT_EMAIL=admin@domaine.com + volumes: + - type: bind + source: /cheminglusterfs/synapse/data + target: /data + networks: + - pgnet + ports: + - "8008:8008" + deploy: + replicas: 1 + placement: + constraints: + - node.role == manager + + element: + image: vectorim/element-web:latest + environment: + - VIRTUAL_HOST=element.domaine.com + - VIRTUAL_PORT=80 + - LETSENCRYPT_HOST=element.domaine.com + - LETSENCRYPT_EMAIL=user@domaine.com + volumes: + - type: bind + source: /cheminglusterfs/element/config/config.json + target: /app/config.json + networks: + - pgnet + ports: + - "80:80" + deploy: + replicas: 1 + placement: + constraints: + - node.role == manager + + synapse-admin: + image: awesometechnologies/synapse-admin:latest + networks: + - pgnet + ports: + - "81:80" + deploy: + replicas: 1 + placement: + constraints: + - node.role == manager + +networks: + pgnet: + external: true