diff --git a/backend/Controllers/HealthController.cs b/backend/Controllers/HealthController.cs index d239ded..2575a06 100644 --- a/backend/Controllers/HealthController.cs +++ b/backend/Controllers/HealthController.cs @@ -7,6 +7,12 @@ namespace Nexus.Api.Controllers; [ApiController] public class HealthController(IAgentRuntime runtime, HealthCheckService healthChecks) : ControllerBase { + [HttpGet("/health/live")] + public IResult Live() + { + return Results.Ok(new { status = "Healthy", timestamp = DateTimeOffset.UtcNow }); + } + [HttpGet("/health")] public async Task Get(CancellationToken ct) { diff --git a/compose.yaml b/compose.yaml index b9762db..60768f8 100644 --- a/compose.yaml +++ b/compose.yaml @@ -53,7 +53,7 @@ services: postgres: condition: service_healthy healthcheck: - test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:8080/health || exit 1"] + test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:8080/health/live || exit 1"] interval: 30s timeout: 10s retries: 3