[synapse] Add sliding sync v3 proxy

This commit is contained in:
JuliusFreudenberger 2023-11-14 21:58:22 +01:00
parent db5afa413d
commit 4fbb008dfb

View file

@ -29,9 +29,36 @@ services:
networks: networks:
- server - 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: volumes:
custom_modules: custom_modules:
postgres_data: postgres_data:
sliding_postgres_data:
networks: networks:
server: server:
@ -40,3 +67,5 @@ networks:
external: true external: true
synapsenet: synapsenet:
name: synapsenet name: synapsenet
slidingnet:
name: slidingnet