Skip to content

Commit e9ea0cb

Browse files
committed
add synapse
1 parent cc939a0 commit e9ea0cb

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ A collection of delicious docker recipes.
455455
- [x] jira
456456
- [x] strapi/strapi
457457
- [x] amancevice/superset
458+
- [x] matrixdotorg/synapse
458459
- [x] syncthing/syncthing
459460
- [x] tensorflow
460461
- [x] serving

synapse/README.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
synapse
2+
=======
3+
4+
[Synapse][1] is a Matrix homeserver implementation developed by the matrix.org core team.
5+
6+
```bash
7+
$ docker-compose run --rm synapse bash
8+
>>> cd /data
9+
>>> /start.py generate
10+
>>> grep 'registration_shared_secret' homeserver.yaml
11+
>>> exit
12+
13+
$ docker-compose up -d
14+
15+
$ docker-compose exec synapse bash
16+
>>> cd /data
17+
>>> register_new_matrix_user http://localhost:8008 -c homeserver.yaml --help
18+
>>> sed -i '/registration_shared_secret/s/^/#/' homeserver.yaml
19+
>>> exit
20+
21+
$ docker-compose restart
22+
```
23+
24+
[1]: https://matrix-org.github.io/synapse/latest/

synapse/docker-compose.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: "3.8"
2+
services:
3+
synapse:
4+
image: matrixdotorg/synapse
5+
ports:
6+
- "8008:8008"
7+
volumes:
8+
- ./data:/data
9+
environment:
10+
- SYNAPSE_SERVER_NAME=matrix.easypi.duckdns.org
11+
- SYNAPSE_HTTP_PORT=8008
12+
- SYNAPSE_REPORT_STATS=no
13+
- SYNAPSE_DATA_DIR=/data
14+
- SYNAPSE_CONFIG_DIR=/data
15+
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
16+
- UID=991
17+
- GID=991
18+
- TZ=UTC
19+
restart: unless-stopped

0 commit comments

Comments
 (0)