feat: add health check endpoint and Docker health monitoring

Add a /health endpoint to the application controller and configure Docker health checks.
This enables container orchestration systems to monitor the application's liveness and readiness.
This commit is contained in:
Jp
2026-02-02 00:54:10 +08:00
parent 3dc74b6aa2
commit 39c16f5090
9 changed files with 28 additions and 2 deletions

View File

@@ -9,3 +9,9 @@ services:
environment:
- PORT=3000
- NODE_ENV=production
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/health"]
interval: 30s
timeout: 3s
retries: 3
start_period: 5s