Skip to content

Commit

Permalink
Store synapse's database somewhere other than a volume (#29)
Browse files Browse the repository at this point in the history
/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.
  • Loading branch information
anoadragon453 authored Nov 3, 2020
1 parent dbbe22d commit 1227899
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dockerfiles/synapse/homeserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ##

Expand Down

0 comments on commit 1227899

Please sign in to comment.