From 5037a7be143e2452aac7564dc83f4efa91144604 Mon Sep 17 00:00:00 2001 From: Aaron Miller Date: Mon, 8 Jan 2024 17:06:13 -0800 Subject: [PATCH] adding healthcheck --- docker-compose.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker-compose.yaml b/docker-compose.yaml index 4f4ec11..aec1afc 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -27,3 +27,9 @@ services: environment: - KEY=${KEY} - CERT=${CERT} + healthcheck: + test: wget --quiet --output-document=- http://localhost:3000/healthcheck || exit 1 + interval: 3s + timeout: 3s + retries: 3 + start_period: 5s