From 33b7e72b182a9551ff4e39684f864df188ae0248 Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Fri, 9 Jan 2026 21:28:39 +0100 Subject: [PATCH] feat: add Docker healthcheck for container monitoring Helps Watchtower and Docker detect unhealthy containers. Co-Authored-By: Claude Opus 4.5 --- CHANGELOG.md | 5 +++++ Dockerfile | 3 +++ pyproject.toml | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c80fab..f82d522 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.2.3] - 2026-01-09 + +### Added +- Docker healthcheck for container health monitoring + ## [0.2.2] - 2026-01-09 ### Fixed diff --git a/Dockerfile b/Dockerfile index 15c5131..8dabe03 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,4 +19,7 @@ ENV PYTHONPATH=/app EXPOSE 8086 +HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ + CMD curl -f http://localhost:8086/health || exit 1 + CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "8086", "--workers", "1"] diff --git a/pyproject.toml b/pyproject.toml index 37ef7e0..47512cb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "webber" -version = "0.2.2" +version = "0.2.3" description = "Mrs. Webber - Multi-Agent AI Development System" authors = [ {name = "jpmschweitzer"}