From 1d52e68b3e9688f841795e59aef802e20ae72363 Mon Sep 17 00:00:00 2001 From: Seth Simmons <40500387+sethsimmons@users.noreply.github.com> Date: Fri, 12 Mar 2021 12:26:25 -0500 Subject: [PATCH] Add healthcheck for yotter (#196) This is a simple addition that adds a healthcheck for the Yotter web UI, allowing for better monitoring and autohealing of the yotter container if the UI is unavailable. --- docker-compose.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index f43914f..bfe2a14 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -31,6 +31,10 @@ services: volumes: - migrations:/usr/src/app/migrations - ./yotter-config.json:/usr/src/app/yotter-config.json + healthcheck: + test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost:5000"] + interval: 1m + timeout: 3s volumes: mysql: migrations: