mirror of https://github.com/tiyn/wiki
parent
94b48d95ca
commit
d0f7ad9fc6
@ -1,51 +0,0 @@
|
|||||||
# matrixdotorg - synapse
|
|
||||||
|
|
||||||
The official container and documentation was made by
|
|
||||||
[matrixdotorg](https://hub.docker.com/matrixdotorg/synapse).
|
|
||||||
|
|
||||||
## Volumes
|
|
||||||
|
|
||||||
Set the following volumes in the `volumes:` section of the docker-compose file.
|
|
||||||
|
|
||||||
| Volume-Name | Container mount | Description |
|
|
||||||
| ----------- | --------------- | ------------------------------- |
|
|
||||||
| `matrix` | `/data` | storage for all homeserver data |
|
|
||||||
|
|
||||||
## Ports
|
|
||||||
|
|
||||||
Set the following ports in the `ports:` section.
|
|
||||||
|
|
||||||
| Container Port | Recommended outside port | Protocol | Description |
|
|
||||||
| -------------- | ------------------------ | -------- | --------------------------------- |
|
|
||||||
| `3478` | `3478` | TCP | TURN over TLS |
|
|
||||||
| `5349` | `5349` | TCP | TURN over TLS |
|
|
||||||
| `8008` | `8008` | TCP | standard port for matrix protocol |
|
|
||||||
|
|
||||||
## Rebuild
|
|
||||||
|
|
||||||
```shell
|
|
||||||
#!/bin/sh
|
|
||||||
docker-compose down
|
|
||||||
docker pull matrixdotorg/synapse
|
|
||||||
docker-compose up -d
|
|
||||||
```
|
|
||||||
|
|
||||||
## Docker-Compose.yml
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
version: '3.3'
|
|
||||||
|
|
||||||
services:
|
|
||||||
app:
|
|
||||||
image: matrixdotorg/synapse
|
|
||||||
restart: always
|
|
||||||
volumes:
|
|
||||||
- matrix:/data
|
|
||||||
ports:
|
|
||||||
- "3478:3478"
|
|
||||||
- "5349:5349"
|
|
||||||
- "8008:8008"
|
|
||||||
volumes:
|
|
||||||
matrix:
|
|
||||||
driver: local
|
|
||||||
```
|
|
@ -1,24 +0,0 @@
|
|||||||
# Matrix
|
|
||||||
|
|
||||||
[Matrix](https://matrix.org) is an open communication protocol.
|
|
||||||
|
|
||||||
## Server
|
|
||||||
|
|
||||||
A (home-)server can be setup via docker with the
|
|
||||||
[matrixdotorg image](./docker-images/matrixdotorg_-_synapse.md).
|
|
||||||
|
|
||||||
After the setup the registration is disabled.
|
|
||||||
To enable registration go to the `homeserver.yaml`
|
|
||||||
and locate the following lines:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
## Registration ##
|
|
||||||
|
|
||||||
# Enable registration for new users.
|
|
||||||
enable_registration: False
|
|
||||||
```
|
|
||||||
|
|
||||||
Set `enable_registration` to `True` to enable sign up.
|
|
||||||
|
|
||||||
It is recommended to use a reverse proxy (like [nginx](./nginx.md)) for the 8008
|
|
||||||
port.
|
|
Loading…
Reference in new issue