mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-03-28 03:29:25 +01:00
fix(admin): container healthcheck
This commit is contained in:
parent
80a1d0eef4
commit
df55b48e1c
|
|
@ -75,6 +75,10 @@ router
|
|||
})
|
||||
.prefix('/api/downloads')
|
||||
|
||||
router.get('/api/health', () => {
|
||||
return { status: 'ok' }
|
||||
})
|
||||
|
||||
router
|
||||
.group(() => {
|
||||
router.get('/info', [SystemController, 'getSystemInfo'])
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user