From 12278995eb043904e9f2f34386b176e68ccf85d2 Mon Sep 17 00:00:00 2001 From: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Date: Tue, 3 Nov 2020 15:34:03 +0000 Subject: [PATCH] Store synapse's database somewhere other than a volume (#29) /data is a volume in the Synapse docker image. Volumes are not copied over when committing a container to an image. Thus, we should store the database somewhere else. An alternative fix is to just not create a volume (we don't need it when running complement tests), however this would require creating an separate dockerfile from the one we're using from the Synapse repo now, which is much more annoying. --- dockerfiles/synapse/homeserver.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dockerfiles/synapse/homeserver.yaml b/dockerfiles/synapse/homeserver.yaml index 8f4caa6c..df6b2d9a 100644 --- a/dockerfiles/synapse/homeserver.yaml +++ b/dockerfiles/synapse/homeserver.yaml @@ -32,7 +32,9 @@ listeners: database: name: "sqlite3" args: - database: "/data/homeserver.db" + # We avoid /data, as it is a volume and is not transferred when the container is committed, + # which is a fundamental necessity in complement. + database: "/conf/homeserver.db" ## Federation ##