Compare commits
No commits in common. "main" and "andreas-patch-1" have entirely different histories.
main
...
andreas-pa
8 changed files with 2 additions and 134 deletions
|
@ -30,7 +30,6 @@ Remove the current database entry from the file and copy everything from the "ho
|
|||
Set the database password to the one set in the "docker-compose.yml".
|
||||
Change the turn server uris to your turn domain name.
|
||||
Set the "turn_shared_secret" to the value of the "static-auth-secret" in the "turnserver.conf" file.
|
||||
Add "public_baseurl: "https://matrix.yourdomain.com:8448" on the line under "server_name"
|
||||
|
||||
Now run `docker compose up -d` to start everything.
|
||||
To create your use, run `docker exec -it synapse register_new_matrix_user http://localhost:8008 -c /data/homeserver.yaml` and fill in all the values.
|
|
@ -3,7 +3,7 @@ matrix.m00.se {
|
|||
log
|
||||
|
||||
reverse_proxy /_matrix/* http://synapse:8008
|
||||
reverse_proxy /_synapse/* http://synapse:8008
|
||||
reverse_proxy /_synapse/client/* http://synapse:8008
|
||||
}
|
||||
matrix.m00.se:8448 {
|
||||
reverse_proxy /_matrix/* synapse:8008
|
||||
|
|
|
@ -3,15 +3,12 @@ services:
|
|||
depends_on:
|
||||
caddy:
|
||||
condition: service_started
|
||||
redis:
|
||||
condition: service_started
|
||||
postgres:
|
||||
condition: service_started
|
||||
container_name: synapse
|
||||
command: generate
|
||||
environment:
|
||||
- SYNAPSE_SERVER_NAME=example.com
|
||||
- SYNAPSE_REPORT_STATS=yes
|
||||
image: matrixdotorg/synapse:latest
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
|
@ -72,95 +69,13 @@ services:
|
|||
networks:
|
||||
- matrix-network
|
||||
restart: "unless-stopped"
|
||||
|
||||
redis:
|
||||
container_name: redis
|
||||
image: redis:8.0-M03-alpine
|
||||
restart: always
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
networks:
|
||||
- matrix-network
|
||||
|
||||
synapse-federation-sender-1:
|
||||
image: matrixdotorg/synapse:latest
|
||||
container_name: synapse-federation-sender-1
|
||||
restart: unless-stopped
|
||||
entrypoint: [ "/start.py", "run", "--config-path=/data/homeserver.yaml", "--config-path=/data/workers/synapse-federation-sender-1.yaml" ]
|
||||
healthcheck:
|
||||
disable: true
|
||||
volumes:
|
||||
- ./synapse:/data:rw
|
||||
networks:
|
||||
- matrix-network
|
||||
user: "1000:1000"
|
||||
environment:
|
||||
SYNAPSE_WORKER: synapse.app.federation_sender
|
||||
depends_on:
|
||||
- synapse
|
||||
- redis
|
||||
|
||||
synapse-federation-sender-2:
|
||||
image: matrixdotorg/synapse:latest
|
||||
container_name: synapse-federation-sender-2
|
||||
restart: unless-stopped
|
||||
entrypoint: [ "/start.py", "run", "--config-path=/data/homeserver.yaml", "--config-path=/data/workers/synapse-federation-sender-2.yaml" ]
|
||||
healthcheck:
|
||||
disable: true
|
||||
volumes:
|
||||
- ./synapse:/data:rw
|
||||
networks:
|
||||
- matrix-network
|
||||
user: "1000:1000"
|
||||
environment:
|
||||
SYNAPSE_WORKER: synapse.app.federation_sender
|
||||
depends_on:
|
||||
- synapse
|
||||
- redis
|
||||
|
||||
synapse-federation-sender-3:
|
||||
image: matrixdotorg/synapse:latest
|
||||
container_name: synapse-federation-sender-3
|
||||
restart: unless-stopped
|
||||
entrypoint: [ "/start.py", "run", "--config-path=/data/homeserver.yaml", "--config-path=/data/workers/synapse-federation-sender-3.yaml" ]
|
||||
healthcheck:
|
||||
disable: true
|
||||
volumes:
|
||||
- ./synapse:/data:rw
|
||||
networks:
|
||||
- matrix-network
|
||||
user: "1000:1000"
|
||||
environment:
|
||||
SYNAPSE_WORKER: synapse.app.federation_sender
|
||||
depends_on:
|
||||
- synapse
|
||||
- redis
|
||||
|
||||
synapse-federation-sender-4:
|
||||
image: matrixdotorg/synapse:latest
|
||||
container_name: synapse-federation-sender-4
|
||||
restart: unless-stopped
|
||||
entrypoint: [ "/start.py", "run", "--config-path=/data/homeserver.yaml", "--config-path=/data/workers/synapse-federation-sender-4.yaml" ]
|
||||
healthcheck:
|
||||
disable: true
|
||||
volumes:
|
||||
- ./synapse:/data:rw
|
||||
networks:
|
||||
- matrix-network
|
||||
user: "1000:1000"
|
||||
environment:
|
||||
SYNAPSE_WORKER: synapse.app.federation_sender
|
||||
depends_on:
|
||||
- synapse
|
||||
- redis
|
||||
|
||||
|
||||
networks:
|
||||
matrix-network:
|
||||
|
||||
|
||||
volumes:
|
||||
caddy_data:
|
||||
caddy_config:
|
||||
synapse-data:
|
||||
|
||||
|
||||
|
|
|
@ -1,41 +1,3 @@
|
|||
listeners:
|
||||
- port: 8008
|
||||
tls: false
|
||||
type: http
|
||||
x_forwarded: true
|
||||
resources:
|
||||
- names: [client, federation]
|
||||
compress: false
|
||||
|
||||
- port: 9093
|
||||
type: http
|
||||
resources:
|
||||
- names: [replication]
|
||||
|
||||
send_federation: false
|
||||
federation_sender_instances:
|
||||
- synapse-federation-sender-1
|
||||
- synapse-federation-sender-2
|
||||
- synapse-federation-sender-3
|
||||
- synapse-federation-sender-4
|
||||
|
||||
redis:
|
||||
enabled: true
|
||||
host: redis
|
||||
port: 6379
|
||||
|
||||
instance_map:
|
||||
main:
|
||||
host: 'localhost'
|
||||
port: 9093
|
||||
|
||||
worker_listeners:
|
||||
- type: http
|
||||
port: 8083
|
||||
x_forwarded: true
|
||||
resources:
|
||||
- names: [client, federation]
|
||||
|
||||
database:
|
||||
name: psycopg2
|
||||
args:
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
worker_app: synapse.app.federation_sender
|
||||
worker_name: synapse-federation-sender-1
|
|
@ -1,2 +0,0 @@
|
|||
worker_app: synapse.app.federation_sender
|
||||
worker_name: synapse-federation-sender-2
|
|
@ -1,2 +0,0 @@
|
|||
worker_app: synapse.app.federation_sender
|
||||
worker_name: synapse-federation-sender-3
|
|
@ -1,2 +0,0 @@
|
|||
worker_app: synapse.app.federation_sender
|
||||
worker_name: synapse-federation-sender-4
|
Loading…
Add table
Reference in a new issue