Add: Matrix-Stack docker compose file

This commit is contained in:
Aroy-Art 2024-10-03 21:53:57 +02:00
parent a2f4d73cc7
commit dc613523ac
Signed by: Aroy
GPG key ID: 583642324A1D2070

View file

@ -0,0 +1,31 @@
version: '3'
services:
# Matrix Homeserver
synapse-db:
image: postgres:16
restart: unless-stopped
hostname: synapse-db
environment: # These will be used in homeserver.yaml later on
- POSTGRES_DB=${SYNAPSE_DB_NAME:-synapse}
- POSTGRES_USER=${SYNAPSE_DB_USER:-synapse}
- POSTGRES_PASSWORD=${SYNAPSE_DB_PASSWORD:-change_me}
- POSTGRES_INITDB_ARGS=${SYNAPSE_DB_INITDB_ARGS:---encoding='utf8' --lc-collate='C' --lc-ctype='C'
volumes:
- ./synapse_db:/var/lib/postgresql/data
synapse:
image: matrixdotorg/synapse:latest
restart: unless-stopped
hostname: synapse
ports:
- 8000:8008
- 9009:9009
links:
- synapse-db
depends_on:
- synapse-db
volumes:
- ./synapse:/data
- ./briges:/briges