From a67f53766dc0e583eb5635a1778f180b5bdd3641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=99=A9=EC=9C=A4=EC=84=B1?= <87403078+hys0star@users.noreply.github.com> Date: Mon, 18 Oct 2021 23:13:56 +0900 Subject: [PATCH] Add healthcheck Inquire http://127.0.0.1:3000/api/v1/comments/jNQXAC9IVRw every 30 seconds, mark Unhealthy when an error returns. https://github.com/iv-org/documentation/pull/155 (I didn't put Autoheal in here.) --- docker-compose.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index ea1d2993..cc62d6e5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -35,6 +35,11 @@ services: full_refresh: false https_only: false domain: + healthcheck: + test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/comments/jNQXAC9IVRw || exit 1 + interval: 30s + timeout: 5s + retries: 2 depends_on: - postgres