feat(api): add healthcheck endpoint for monitoring health from Docker/Podman (#2024)

This commit is contained in:
David Long
2025-12-30 11:54:30 -07:00
committed by GitHub
parent 1b27ca3028
commit 8580670b6e
5 changed files with 42 additions and 1 deletions
+6
View File
@@ -257,6 +257,12 @@ services:
- ./data:/app/data
- ./books:/books
- ./bookdrop:/bookdrop
healthcheck:
test: wget -q -O - http://localhost:${BOOKLORE_PORT}/api/v1/healthcheck
interval: 60s
retries: 5
start_period: 60s
timeout: 10s
restart: unless-stopped
mariadb: