summary refs log tree commit diff
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorChristopher May-Townsend <chris@maytownsend.co.uk>2020-08-24 18:15:18 +0100
committerGitHub <noreply@github.com>2020-08-24 18:15:18 +0100
commit64e8a4697abd84329aa59877b9bca5704d9e0f4c (patch)
treecadb2b47df9b4f63d43186ecb8fa16b740b11596 /docker/Dockerfile
parentFix flaky shadow-ban tests. (#8152) (diff)
downloadsynapse-64e8a4697abd84329aa59877b9bca5704d9e0f4c.tar.xz
Add healthcheck for default localhost 8008 port on /health endpoint. (#8147)
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile4
1 files changed, 4 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 8b3a4246a5..432d56a8ee 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -55,6 +55,7 @@ RUN pip install --prefix="/install" --no-warn-script-location \
 FROM docker.io/python:${PYTHON_VERSION}-slim
 
 RUN apt-get update && apt-get install -y \
+    curl \
     libpq5 \
     xmlsec1 \
     gosu \
@@ -69,3 +70,6 @@ VOLUME ["/data"]
 EXPOSE 8008/tcp 8009/tcp 8448/tcp
 
 ENTRYPOINT ["/start.py"]
+
+HEALTHCHECK --interval=1m --timeout=5s \
+  CMD curl -fSs http://localhost:8008/health || exit 1