Add: Matrix-Stack docker compose file
This commit is contained in:
parent
a2f4d73cc7
commit
dc613523ac
1 changed files with 31 additions and 0 deletions
31
Docker/Docker-Compose/Matrix-Stack/docker-compose.yml
Normal file
31
Docker/Docker-Compose/Matrix-Stack/docker-compose.yml
Normal 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
|
Loading…
Reference in a new issue