Added files

This commit is contained in:
2026-04-06 20:25:40 -05:00
parent 4b67f50afc
commit ebd573499d
4 changed files with 94 additions and 0 deletions

11
.env.example Normal file
View File

@@ -0,0 +1,11 @@
# Postgres
POSTGRES_DB=synapse
POSTGRES_USER=synapse
POSTGRES_PASSWORD=changeme
# Synapse
SYNAPSE_SERVER_NAME=chat.example.com
# Element Admin
REACT_APP_SERVER=https://chat.example.com
REACT_APP_REGISTRATION_ENABLED=false

4
.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
postgres-data/
synapse-data/
.env
element-config.json

45
docker-compose.yml Normal file
View File

@@ -0,0 +1,45 @@
version: '3.8'
services:
postgres:
image: postgres:14
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_INITDB_ARGS: "--encoding=UTF8 --locale=C"
volumes:
- ./postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
synapse:
image: matrixdotorg/synapse:latest
restart: unless-stopped
depends_on:
- postgres
environment:
SYNAPSE_SERVER_NAME: ${SYNAPSE_SERVER_NAME}
SYNAPSE_REPORT_STATS: 'yes'
SYNAPSE_NO_TLS: 'true'
volumes:
- ./synapse-data:/data
ports:
- "8008:8008"
element-web:
image: vectorim/element-web:latest
restart: unless-stopped
depends_on:
- synapse
volumes:
- ./element-config.json:/app/config.json
ports:
- "8080:80"
element-admin:
image: awesometechnologies/synapse-admin:latest
container_name: element-admin
ports:
- 8081:80
environment:
- REACT_APP_SERVER=${REACT_APP_SERVER}
- REACT_APP_REGISTRATION_ENABLED=${REACT_APP_REGISTRATION_ENABLED}
restart: unless-stopped

View File

@@ -0,0 +1,34 @@
{
"default_server_config": {
"m.homeserver": {
"base_url": "https://chat.example.com",
"server_name": "chat.example.com"
}
},
"disable_custom_urls": true,
"brand": "My Matrix Server",
"showLabsSettings": true,
"voip": {
"stun_servers": [
{ "urls": ["stun:turn.example.com:3478"] }
],
"turn_servers": [
{
"urls": [
"turn:turn.example.com:3478?transport=udp",
"turn:turn.example.com:3478?transport=tcp",
"turns:turn.example.com:5349?transport=tcp"
],
"secret": "changeme",
"expiry": 86400000
}
]
},
"webrtc": {
"livekit_url": "wss://chat.example.com:7880",
"jwt_url": "https://chat.example.com:8100"
},
"labs": {
"feature_custom_calls": true
}
}