Added files
This commit is contained in:
11
.env.example
Normal file
11
.env.example
Normal 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
4
.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
postgres-data/
|
||||||
|
synapse-data/
|
||||||
|
.env
|
||||||
|
element-config.json
|
||||||
45
docker-compose.yml
Normal file
45
docker-compose.yml
Normal 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
|
||||||
34
element-config.json.example
Normal file
34
element-config.json.example
Normal 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
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user