summary refs log tree commit diff
path: root/docker/README.md
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/README.md
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/README.md')
-rw-r--r--docker/README.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/docker/README.md b/docker/README.md
index 008a9ff708..d0da34778e 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -162,3 +162,32 @@ docker build -t matrixdotorg/synapse -f docker/Dockerfile .
 
 You can choose to build a different docker image by changing the value of the `-f` flag to
 point to another Dockerfile.
+
+## Disabling the healthcheck
+
+If you are using a non-standard port or tls inside docker you can disable the healthcheck
+whilst running the above `docker run` commands. 
+
+```
+   --no-healthcheck
+```
+## Setting custom healthcheck on docker run
+
+If you wish to point the healthcheck at a different port with docker command, add the following
+
+```
+  --health-cmd 'curl -fSs http://localhost:1234/health'
+```
+
+## Setting the healthcheck in docker-compose file
+
+You can add the following to set a custom healthcheck in a docker compose file.
+You will need version >2.1 for this to work. 
+
+```
+healthcheck:
+  test: ["CMD", "curl", "-fSs", "http://localhost:8008/health"]
+  interval: 1m
+  timeout: 10s
+  retries: 3
+```