Index of /howto/matrix-server-with-synapse-and-docker

 NameLast modifiedSize
[PARENTDIR]Parent Directory  -
[DIR]data/2022-03-06 17:31 -
[   ]docker-compose.yml2022-03-06 17:30 878

Matrix server with Synapse and friends

Generate initial configuration for Synapse

Before running the Synapse server for the first time, configuration must be generated:

# docker run -it --rm \
    -e SYNAPSE_SERVER_NAME=localdomain.dk \
    -e SYNAPSE_REPORT_STATS=yes \
    -v `pwd`/data/synapse:/data \
    matrixdotorg/synapse:latest \
    generate

Tasks

Create a user like so:

# docker-compose exec synapse register_new_matrix_user -c /data/homeserver.yaml http://localhost:8008

Resetting a user password:

# docker-compose exec synapse hash_password


# docker-compose exec postgres psql -U synapse
update users set password_hash = '<some hash>' where name = '<username>';