Add synapse
This commit is contained in:
parent
4aca54860d
commit
d600ba5f23
2 changed files with 40 additions and 0 deletions
7
synapse/README.md
Normal file
7
synapse/README.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
# synapse
|
||||
|
||||
A Matrix homeserver implementation developed by the matrix.org core team.
|
||||
|
||||
## Important step when deploying
|
||||
This stacks the data to in a folder under /media/matrix/matrix_data.
|
||||
The database is stored in a named volume.
|
33
synapse/docker-compose.yaml
Normal file
33
synapse/docker-compose.yaml
Normal file
|
@ -0,0 +1,33 @@
|
|||
version: '3.3'
|
||||
|
||||
services:
|
||||
app:
|
||||
image: matrixdotorg/synapse:${synapse_version:-latest}
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /media/matrix/matrix_data:/data
|
||||
networks:
|
||||
- server
|
||||
|
||||
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'
|
||||
- VIRTUAL_HOST=matrix.jfreudenberger.de # the domain where the service should be reached
|
||||
- VIRTUAL_PORT=80 # the port the service listens in the container
|
||||
- LETSENCRYPT_HOST=matrix.jfreudenberger.de # the same domain as VIRTUAL_HOST; this enables ssl
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- server
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
|
||||
networks:
|
||||
server:
|
||||
external: false
|
Loading…
Reference in a new issue