Fix API deploy healthcheck by starting Kestrel before migrate/seed.
CI / backend (push) Canceled after 0s
CI / frontend (push) Canceled after 0s

Compose was marking the API unhealthy because bootstrap blocked app.Run(), so /health/live never answered within the HEALTHCHECK window.
This commit is contained in:
2026-10-04 19:27:21 +08:00
parent d013dd4bb5
commit 7d7332641f
9 changed files with 915 additions and 22 deletions
+6
View File
@@ -37,6 +37,12 @@ services:
networks:
- vigilcare_records_prod
- shared-services
healthcheck:
test: ["CMD", "curl", "-fsS", "http://localhost:8080/health/live"]
interval: 10s
timeout: 5s
retries: 6
start_period: 40s
logging:
driver: json-file
options: { max-size: "50m", max-file: "5" }