From dec7902e4a7325e5da375d99cd7a352bd1791de6 Mon Sep 17 00:00:00 2001 From: Dan Allan Date: Thu, 12 Dec 2024 12:05:00 -0500 Subject: [PATCH 1/2] Add healthcheck to docker-compose. --- docker-compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index c2dda2ec2..d5d5e41f0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,6 +7,12 @@ services: ports: - 8000:8000 restart: unless-stopped + healthcheck: + test: curl --fail http://localhost:8000/healthz || exit 1 + interval: 60s + timeout: 10s + retries: 3 + start_period: 30s # Below we additionally configure monitoring with Prometheus and Grafana. # This is optional; it is not required for Tiled to function. From 4efda3b8c3efb7d87140bf3c2cdc733dc0525955 Mon Sep 17 00:00:00 2001 From: Dan Allan Date: Thu, 12 Dec 2024 12:05:37 -0500 Subject: [PATCH 2/2] Update CHANGELOG --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 18548cffb..f09df0e25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ Write the date in place of the "Unreleased" in the case a new version is release # Changelog +## Unreleased + +### Added + +- `docker-compose.yml` now uses the healthcheck endpoint `/healthz` + ## 2024-12-09 ### Added