Added federation sender workers to setup
This commit is contained in:
parent
56fe1c0315
commit
9b5b7cf629
6 changed files with 131 additions and 1 deletions
|
@ -3,6 +3,8 @@ 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
|
||||||
|
@ -70,13 +72,95 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- 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,3 +1,41 @@
|
||||||
|
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:
|
||||||
|
|
2
synapse/workers/synapse-federation-sender-1.yml
Normal file
2
synapse/workers/synapse-federation-sender-1.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
worker_app: synapse.app.federation_sender
|
||||||
|
worker_name: synapse-federation-sender-1
|
2
synapse/workers/synapse-federation-sender-2.yml
Normal file
2
synapse/workers/synapse-federation-sender-2.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
worker_app: synapse.app.federation_sender
|
||||||
|
worker_name: synapse-federation-sender-2
|
2
synapse/workers/synapse-federation-sender-3.yml
Normal file
2
synapse/workers/synapse-federation-sender-3.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
worker_app: synapse.app.federation_sender
|
||||||
|
worker_name: synapse-federation-sender-3
|
2
synapse/workers/synapse-federation-sender-4.yml
Normal file
2
synapse/workers/synapse-federation-sender-4.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
worker_app: synapse.app.federation_sender
|
||||||
|
worker_name: synapse-federation-sender-4
|
Loading…
Add table
Reference in a new issue