mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-05-13 22:06:55 +02:00
add synapse
This commit is contained in:
parent
cc939a0151
commit
e9ea0cbb8f
@ -455,6 +455,7 @@ A collection of delicious docker recipes.
|
|||||||
- [x] jira
|
- [x] jira
|
||||||
- [x] strapi/strapi
|
- [x] strapi/strapi
|
||||||
- [x] amancevice/superset
|
- [x] amancevice/superset
|
||||||
|
- [x] matrixdotorg/synapse
|
||||||
- [x] syncthing/syncthing
|
- [x] syncthing/syncthing
|
||||||
- [x] tensorflow
|
- [x] tensorflow
|
||||||
- [x] serving
|
- [x] serving
|
||||||
|
24
synapse/README.md
Normal file
24
synapse/README.md
Normal 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/
|
19
synapse/docker-compose.yml
Normal file
19
synapse/docker-compose.yml
Normal 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
|
Loading…
x
Reference in New Issue
Block a user