Added Matrix server configuration in docker-compose.yml

This commit is contained in:
Fabio Scotto di Santolo
2025-12-10 18:29:54 +01:00
parent 908a43aa1d
commit fad342de01
3 changed files with 79 additions and 0 deletions

View File

@@ -83,6 +83,66 @@ services:
- "3000:3000"
- "127.0.0.1:222:22"
synapse-db:
image: postgres:15
container_name: synapse-db
restart: unless-stopped
environment:
POSTGRES_DB: synapse
POSTGRES_USER: synapse
POSTGRES_PASSWORD_FILE: /run/secrets/synapse_db_password
volumes:
- synapse_db_data:/var/lib/postgresql/data
secrets:
- synapse_db_password
networks:
- web
synapse:
image: matrixdotorg/synapse:latest
container_name: synapse
restart: unless-stopped
depends_on:
- synapse-db
environment:
SYNAPSE_SERVER_NAME: "matrix.fscotto.duckdns.org"
SYNAPSE_REPORT_STATS: "no"
SYNAPSE_NO_TLS: "true"
POSTGRES_PASSWORD_FILE: /run/secrets/synapse_db_password
SYNAPSE_CONFIG_DIR: /data
volumes:
- synapse_data:/data
expose:
- "8008"
secrets:
- synapse_db_password
networks:
- web
coturn:
image: instrumentisto/coturn
container_name: coturn
restart: unless-stopped
volumes:
- ./turnserver.conf:/etc/turnserver.conf:ro
networks:
- web
expose:
- "3478/udp"
- "3478/tcp"
- "49152-49200/udp"
element-web:
image: vectorim/element-web:latest
container_name: element-web
restart: unless-stopped
expose:
- "80"
volumes:
- element_web_config:/app/config
networks:
- web
networks:
web:
external: false
@@ -96,3 +156,11 @@ secrets:
postgres_root_password: # This name is referenced by the 'navidromedb' service
file: ./postgres_root_password.txt # Path to your secret file on the host
synapse_db_password: # This name is referenced by the 'synapse' service
file: ./synapse_db_password.txt # Path to your secret file on the host
volumes:
synapse_db_data:
synapse_data:
element_web_config:

View File

@@ -0,0 +1 @@
insert_your_password_here

10
Raspberry/turnserver.conf Normal file
View File

@@ -0,0 +1,10 @@
listening-port=3478
min-port=49152
max-port=49200
realm=matrix.fscotto.duckdns.org
user=turnuser:VeryStrongPassword123! # Change me!
lt-cred-mech
fingerprint
no-multicast-peers