From da1e2bd7f13f9ed7810f73b1e5583ef3cef02da0 Mon Sep 17 00:00:00 2001 From: chris Date: Tue, 10 May 2022 13:11:22 +0200 Subject: [PATCH 1/2] flesh out readme --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c375010..f98bc3e 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,17 @@ Everything (except for docker-compose.yaml) goes into the data-volume of the synapse installation. -*This is work in progress a.k.a. defunct!* +This uses the semi-official synapse image: https://hub.docker.com/r/matrixdotorg/synapse + +Config is cobbled together using the worker documentation: https://matrix-org.github.io/synapse/latest/workers.html#setting-up-workers and this blog post: https://netfg.net/post/128 + +## First time launch: + +* Create containers and volumes: `docker-compose up --no-start` +* Generate Keys and config: `docker-compose run --rm -e SYNAPSE_SERVER_NAME=??? -e SYNAPSE_REPORT_STATS=no synapse generate` +* Read through the generated homeserver.yaml. Take note of generated keys, etc. +* Replace homeserver.yaml in your data volume with the one from this repository, adapting to your needs. Use the keys from the step before. Copy the other config-yamls to your /data directory. +* Start the databases: `docker-compose up -d redis postgres` +* Start the synapse services: `docker-compose up -d` +* Don't forget to backup your config directory and database +* Good luck :) From 563c20b0b745adece499687374d864ead84b4800 Mon Sep 17 00:00:00 2001 From: chris Date: Tue, 10 May 2022 13:13:18 +0200 Subject: [PATCH 2/2] use external images --- docker-compose.yaml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 218a8e0..459b3e5 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -21,10 +21,8 @@ services: back: {} redis: - image: "reg.zknt.org/zknt/redis" + image: "redis" restart: "unless-stopped" - volumes: - - "redisdata:/var/lib/redis" networks: back: {} @@ -140,11 +138,4 @@ services: volumes: data: - labels: - org.zknt.backup: true dbdata: - labels: - org.zknt.backup: true - redisdata: - labels: - org.zknt.backup: true