1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-21 17:56:53 +02:00

add synapse

This commit is contained in:
kev 2023-02-09 11:57:43 +08:00
parent cc939a0151
commit e9ea0cbb8f
3 changed files with 44 additions and 0 deletions

View File

@ -455,6 +455,7 @@ A collection of delicious docker recipes.
- [x] jira
- [x] strapi/strapi
- [x] amancevice/superset
- [x] matrixdotorg/synapse
- [x] syncthing/syncthing
- [x] tensorflow
- [x] serving

24
synapse/README.md Normal file
View File

@ -0,0 +1,24 @@
synapse
=======
[Synapse][1] is a Matrix homeserver implementation developed by the matrix.org core team.
```bash
$ docker-compose run --rm synapse bash
>>> cd /data
>>> /start.py generate
>>> grep 'registration_shared_secret' homeserver.yaml
>>> exit
$ docker-compose up -d
$ docker-compose exec synapse bash
>>> cd /data
>>> register_new_matrix_user http://localhost:8008 -c homeserver.yaml --help
>>> sed -i '/registration_shared_secret/s/^/#/' homeserver.yaml
>>> exit
$ docker-compose restart
```
[1]: https://matrix-org.github.io/synapse/latest/

View File

@ -0,0 +1,19 @@
version: "3.8"
services:
synapse:
image: matrixdotorg/synapse
ports:
- "8008:8008"
volumes:
- ./data:/data
environment:
- SYNAPSE_SERVER_NAME=matrix.easypi.duckdns.org
- SYNAPSE_HTTP_PORT=8008
- SYNAPSE_REPORT_STATS=no
- SYNAPSE_DATA_DIR=/data
- SYNAPSE_CONFIG_DIR=/data
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
- UID=991
- GID=991
- TZ=UTC
restart: unless-stopped