infrastructure/synapse/docker-compose.yaml

72 lines
2.1 KiB
YAML
Raw Permalink Normal View History

2022-02-14 14:40:24 +01:00
version: '3.3'
services:
app:
image: matrixdotorg/synapse:${synapse_version:-latest}
restart: unless-stopped
volumes:
- /media/matrix/matrix_data:/data
- custom_modules:/usr/local/lib/python3.11/site-packages/custom_modules
environment:
- VIRTUAL_HOST=matrix.jfreudenberger.de # the domain where the service should be reached
- VIRTUAL_PORT=8008 # the port the service listens in the container
- LETSENCRYPT_HOST=matrix.jfreudenberger.de # the same domain as VIRTUAL_HOST; this enables ssl
2022-02-14 14:40:24 +01:00
networks:
- server
- webproxy
- synapsenet
2022-02-14 14:40:24 +01:00
postgresql:
image: postgres:${postgres_version:-13}
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=synapse
- POSTGRES_USER=synapse
- POSTGRES_DB=synapse
- POSTGRES_INITDB_ARGS=--encoding='UTF8' --lc-collate='C' --lc-ctype='C'
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- server
2023-11-14 21:58:22 +01:00
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=disable
2023-11-14 21:58:22 +01:00
- 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
2022-02-14 14:40:24 +01:00
volumes:
2022-03-01 23:38:37 +01:00
custom_modules:
2022-02-14 14:40:24 +01:00
postgres_data:
2023-11-14 21:58:22 +01:00
sliding_postgres_data:
2022-02-14 14:40:24 +01:00
networks:
server:
external: false
webproxy:
external: true
synapsenet:
name: synapsenet
2023-11-14 21:58:22 +01:00
slidingnet:
name: slidingnet