Compare commits
No commits in common. "main" and "andreas-patch-3" have entirely different histories.
main
...
andreas-pa
7 changed files with 1 additions and 132 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".
|
Set the database password to the one set in the "docker-compose.yml".
|
||||||
Change the turn server uris to your turn domain name.
|
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.
|
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.
|
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.
|
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,8 +3,6 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
caddy:
|
caddy:
|
||||||
condition: service_started
|
condition: service_started
|
||||||
redis:
|
|
||||||
condition: service_started
|
|
||||||
postgres:
|
postgres:
|
||||||
condition: service_started
|
condition: service_started
|
||||||
container_name: synapse
|
container_name: synapse
|
||||||
|
@ -73,94 +71,12 @@ services:
|
||||||
- matrix-network
|
- matrix-network
|
||||||
restart: "unless-stopped"
|
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:
|
networks:
|
||||||
matrix-network:
|
matrix-network:
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
caddy_data:
|
caddy_data:
|
||||||
caddy_config:
|
caddy_config:
|
||||||
synapse-data:
|
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:
|
database:
|
||||||
name: psycopg2
|
name: psycopg2
|
||||||
args:
|
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