From 4fbb008dfb1570f546714065cc304f530350a0aa Mon Sep 17 00:00:00 2001 From: JuliusFreudenberger Date: Tue, 14 Nov 2023 21:58:22 +0100 Subject: [PATCH] [synapse] Add sliding sync v3 proxy --- synapse/docker-compose.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/synapse/docker-compose.yaml b/synapse/docker-compose.yaml index a376617..66fef56 100644 --- a/synapse/docker-compose.yaml +++ b/synapse/docker-compose.yaml @@ -29,9 +29,36 @@ services: networks: - server + sliding-sync-proxy: + image: ghcr.io/matrix-org/sliding-sync:${sliding_sync_version:-latest} + restart: unless-stopped + environment: + - VIRTUAL_HOST=syncv3.matrix.jfreudenberger.de # the domain where the service should be reached + - VIRTUAL_PORT=8008 # the port the service listens in the container + - LETSENCRYPT_HOST=syncv3.matrix.jfreudenberger.de # the same domain as VIRTUAL_HOST; this enables ssl + - SYNCV3_SERVER=https://matrix.jfreudenberger.de + - SYNCV3_DB=postgresql://sliding:sliding@sliding-db:5432/sliding?sslmode=prefer + - SYNCV3_SECRET=${sliding_sync_secret} + networks: + - slidingnet + - webproxy + + sliding-db: + image: postgres:${postgres_version:-13} + restart: unless-stopped + environment: + - POSTGRES_PASSWORD=sliding + - POSTGRES_USER=sliding + - POSTGRES_DB=sliding + volumes: + - sliding_postgres_data:/var/lib/postgresql/data + networks: + - slidingnet + volumes: custom_modules: postgres_data: + sliding_postgres_data: networks: server: @@ -40,3 +67,5 @@ networks: external: true synapsenet: name: synapsenet + slidingnet: + name: slidingnet