Refactoring

This commit is contained in:
2026-01-15 00:14:56 +04:00
parent 9eeb0fb1f2
commit 09bd0766b0
27 changed files with 370 additions and 47 deletions

View File

@@ -1,5 +1,5 @@
docker run -it --rm \
-v "$(pwd)/synapse_data:/data" \
-e SYNAPSE_SERVER_NAME=example.com \
-e SYNAPSE_REPORT_STATS=yes \
-v "$(pwd)/data:/data" \
-e SYNAPSE_SERVER_NAME=matrix.domain.ru \
-e SYNAPSE_REPORT_STATS=no \
matrixdotorg/synapse:latest generate

View File

@@ -1,2 +1,2 @@
docker exec -it matrix-synapse-1 register_new_matrix_user \
-c /data/homeserver.yaml http://localhost:8008
docker exec -it matrix-synapse register_new_matrix_user \
-c /data/homeserver.yaml https://matrix.domain.ru

View File

@@ -9,6 +9,13 @@ services:
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
depends_on:
- matrix-db
deploy:
resources:
limits:
cpus: '1.0'
memory: 512M
reservations:
memory: 256M
networks:
- matrix_network
@@ -23,6 +30,13 @@ services:
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
volumes:
- ./db:/var/lib/postgresql/data
deploy:
resources:
limits:
cpus: '1.0'
memory: 512M
reservations:
memory: 256M
networks:
- matrix_network
@@ -30,9 +44,17 @@ services:
image: vectorim/element-web:latest
container_name: matrix-element
restart: unless-stopped
deploy:
resources:
limits:
cpus: '1.0'
memory: 256M
reservations:
memory: 128M
networks:
- matrix_network
networks:
matrix_network:
name: matrix_network
driver: bridge