Skip to content

Project NOMAD is an offline-first knowledge and education server. Wikipedia, thousands of books, courses, maps, and optional local AI, all running on hardware you own with no internet required.

TypeScript

fix(admin): container healthcheck

Jake Turnerdf55b48e1c21
diff --git a/admin/start/routes.ts b/admin/start/routes.ts
index d92af9e6..4dcbf45a 100644
--- a/admin/start/routes.ts
+++ b/admin/start/routes.ts
@@ -75,6 +75,10 @@ router
})
.prefix('/api/downloads')
+router.get('/api/health', () => {
+ return { status: 'ok' }
+})
+
router
.group(() => {
router.get('/info', [SystemController, 'getSystemInfo'])
diff --git a/install/management_compose.yaml b/install/management_compose.yaml
index 5ffc7620..5cde652d 100644
--- a/install/management_compose.yaml
+++ b/install/management_compose.yaml
@@ -34,7 +34,7 @@ services:
condition: service_healthy
entrypoint: ["/usr/local/bin/entrypoint.sh"]
healthcheck:
- test: ["CMD", "curl", "-f", "http://localhost:8080/api/v1/health"]
+ test: ["CMD", "curl", "-f", "http://localhost:8080/api/health"]
interval: 30s
timeout: 10s
retries: 3