summary refs log tree commit diff
path: root/docker/Dockerfile-workers
diff options
context:
space:
mode:
authorMichael Kaye <1917473+michaelkaye@users.noreply.github.com>2021-11-26 14:05:20 +0000
committerGitHub <noreply@github.com>2021-11-26 14:05:20 +0000
commite2c300e7e4647500b0ff5ada8018cc984b78f91c (patch)
tree391a9f8eab79b9ed711e48035b0f34c31e567e6a /docker/Dockerfile-workers
parentTrack ongoing event fetches correctly (again) (#11376) (diff)
downloadsynapse-e2c300e7e4647500b0ff5ada8018cc984b78f91c.tar.xz
Create healthcheck script for synapse-workers container (#11429)
The intent is to iterate through all the worker ports and only
report healthy when all are healthy, starting with the main process.
Diffstat (limited to 'docker/Dockerfile-workers')
-rw-r--r--docker/Dockerfile-workers3
1 files changed, 3 insertions, 0 deletions
diff --git a/docker/Dockerfile-workers b/docker/Dockerfile-workers
index 969cf97286..46f2e17382 100644
--- a/docker/Dockerfile-workers
+++ b/docker/Dockerfile-workers
@@ -21,3 +21,6 @@ VOLUME ["/data"]
 # files to run the desired worker configuration. Will start supervisord.
 COPY ./docker/configure_workers_and_start.py /configure_workers_and_start.py
 ENTRYPOINT ["/configure_workers_and_start.py"]
+
+HEALTHCHECK --start-period=5s --interval=15s --timeout=5s \
+    CMD /bin/sh /healthcheck.sh