1
0
mirror of https://github.com/tiyn/wiki.git synced 2025-10-10 18:01:22 +02:00

matrix: added main page and docker image page

This commit is contained in:
TiynGER
2021-05-18 00:11:26 +02:00
parent 0a15c0e746
commit 40678fb399
3 changed files with 94 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
# 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
```