2020-08-05 17:50:51 +00:00
|
|
|
# [Synapse](https://matrix.org/docs/projects/server/synapse) ([Matrix.org](https://matrix.org/) server)
|
|
|
|
|
2022-03-18 22:56:40 +00:00
|
|
|
## Shared network
|
|
|
|
|
|
|
|
You MUST create a shared network `synapse` for potential ability to communicate with synapse from `synapse-admin` stack.
|
|
|
|
|
|
|
|
```shell
|
|
|
|
docker network create --internal synapse
|
|
|
|
```
|
|
|
|
|
|
|
|
## Generating server configuration
|
2020-08-05 17:50:51 +00:00
|
|
|
|
|
|
|
Do not forget to prepare `.env` file before running this.
|
|
|
|
|
|
|
|
```shell
|
|
|
|
docker-compose run synapse generate
|
|
|
|
```
|
|
|
|
|
|
|
|
After that you can edit `./data/homeserver.yaml` according to your needs.
|
|
|
|
|
2022-03-19 01:11:41 +00:00
|
|
|
If you want to use full-fledged PostgreSQL instead of SQLite, you can check
|
|
|
|
[this documentation](https://github.com/matrix-org/synapse/blob/master/docs/postgres.md).
|
|
|
|
|
|
|
|
To use PostgreSQL running on the host machine, use [this](../_docs/access_database_on_host_from_docker.md) configuration.
|
2020-08-05 17:50:51 +00:00
|
|
|
|
2022-03-18 22:56:40 +00:00
|
|
|
## Running the server
|
2020-08-05 17:50:51 +00:00
|
|
|
|
|
|
|
```shell
|
|
|
|
docker-compose up -d
|
|
|
|
```
|