diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2022-04-11 11:39:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-11 11:39:28 +0100 |
commit | 5f72ea1bdefb685686ca02ff45863870da379fec (patch) | |
tree | 078cdb6f91c72d73dbf5a54d7024a08adba00e65 /docker/complement/Dockerfile | |
parent | Add Module API for reading and writing global account data. (#12391) (diff) | |
download | synapse-5f72ea1bdefb685686ca02ff45863870da379fec.tar.xz |
Move complement setup stuff into the Synapse repo (#12404)
Fixes matrix-org/complement#330 (or it will, once we remove the old files). It's not quite a lift-and-shift: I've also taken the opportunity to get rid of the custom CA that we used to use to sign the TLS certs, which has been superceded by the CA exposed by Complement.
Diffstat (limited to 'docker/complement/Dockerfile')
-rw-r--r-- | docker/complement/Dockerfile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/docker/complement/Dockerfile b/docker/complement/Dockerfile new file mode 100644 index 0000000000..4823ce7364 --- /dev/null +++ b/docker/complement/Dockerfile @@ -0,0 +1,22 @@ +# A dockerfile which builds an image suitable for testing Synapse under +# complement. + +ARG SYNAPSE_VERSION=latest + +FROM matrixdotorg/synapse:${SYNAPSE_VERSION} + +ENV SERVER_NAME=localhost + +COPY conf/* /conf/ + +# generate a signing key +RUN generate_signing_key -o /conf/server.signing.key + +WORKDIR /data + +EXPOSE 8008 8448 + +ENTRYPOINT ["/conf/start.sh"] + +HEALTHCHECK --start-period=5s --interval=1s --timeout=1s \ + CMD curl -fSs http://localhost:8008/health || exit 1 |