mirror of
https://github.com/tiyn/wiki.git
synced 2025-11-08 14:11:16 +01:00
2.1 KiB
2.1 KiB
matrixdotorg - synapse
The official container and documentation was made by
matrixdotorg.
This docker-rebuild is made up by a docker-compose.yml file.
If you want to setup a Matrix homeserver please take a look at
the matrix setup guide.
Environment-variables
Set the following environment-variables in the environment: section of the
docker-compose file.
| Name | Usage | Default |
|---|---|---|
SYNAPSE_CONFIG_DIR |
config directory | /data |
SYNAPSE_CONFIG_PATH |
config path | /data/homeserver.yaml |
UID |
user id for synapse user | 1000 |
GID |
group id for synapse user | 1000 |
TZ |
specify the timezone | Europe/London |
Volumes
Set the following volumes in the volumes: section of the docker-compose file.
| Outside mount/volume name | Container mount | Description |
|---|---|---|
synapse |
/data |
directory for storage and configs |
Ports
Set the following ports in the ports: section.
| Container Port | Recommended outside port | Protocol | Description |
|---|---|---|---|
8008 |
443 |
TCP | matrix homeserver port |
rebuild.sh
#!/bin/sh
docker-compose down
docker pull matrixdotorg/synapse:latest
docker-compose up -d
docker-compose.yml
services:
synapse:
image: "matrixdotorg/synapse:latest"
restart: "unless-stopped"
environment:
SYNAPSE_CONFIG_DIR: "/data"
SYNAPSE_CONFIG_PATH: "/data/homeserver.yaml"
UID: "1000"
GID: "1000"
TZ: "Europe/London"
volumes:
- synapse:/data
volumes:
synapse:
driver: local