mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-04-07 09:16:15 +02:00
fix(admin): container healthcheck
This commit is contained in:
parent
80a1d0eef4
commit
df55b48e1c
|
|
@ -75,6 +75,10 @@ router
|
||||||
})
|
})
|
||||||
.prefix('/api/downloads')
|
.prefix('/api/downloads')
|
||||||
|
|
||||||
|
router.get('/api/health', () => {
|
||||||
|
return { status: 'ok' }
|
||||||
|
})
|
||||||
|
|
||||||
router
|
router
|
||||||
.group(() => {
|
.group(() => {
|
||||||
router.get('/info', [SystemController, 'getSystemInfo'])
|
router.get('/info', [SystemController, 'getSystemInfo'])
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ services:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
entrypoint: ["/usr/local/bin/entrypoint.sh"]
|
entrypoint: ["/usr/local/bin/entrypoint.sh"]
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/api/v1/health"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080/api/health"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user