| 
				
					
						
							 | 
			||
|---|---|---|
| .. | ||
| mautrix-discord-bridge | ||
| docker-compose.yaml | ||
| homeserver.yaml | ||
| readme.md | ||
		
			
				
				readme.md
			
		
		
			
			
		
	
	- Create a config file
 
sudo docker run -it --rm 
--mount type=volume,src=synapse-data,dst=/data 
-e SYNAPSE_SERVER_NAME=matrix.jimsgarage.co.uk 
-e SYNAPSE_REPORT_STATS=no 
matrixdotorg/synapse:latest generate
- become root and access the file
 
sudo -i
- 
copy config file to your docker volume mount
 - 
become non-root user
 - 
change owner and permissions of configs so that we can edit them
 
su username
sudo chown ubuntu:ubuntu * (or whatever your user is)
- edit config
 
change database section
name: psycopg2 args: user: password: database: host: cp_min: 5 cp_max: 10
copy over the credentials from the docker compose
- create admin user
 
docker exec -it synapse register_new_matrix_user http://localhost:8008 -c /data/homeserver.yaml --help #remove help once ready
- 
add record to dns server (remember needs to be external as well!)
 - 
check page to see it's up
 - 
element and profit
 - 
Add emails, recaptcha if you want to (recommended!)