mirror of
https://github.com/samply/bridgehead.git
synced 2026-08-15 00:30:42 +02:00
ovis: Probe the running services in the healthchecks
test -d on a node_modules directory was true even with Apollo dead, so the frontend's service_healthy condition gated on nothing.
This commit is contained in:
@@ -51,7 +51,7 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- ovis-backend-database-mongodb
|
- ovis-backend-database-mongodb
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "node -e \"require('http').get('http://localhost:9000/health', res => process.exit(res.statusCode===200?0:1)).on('error', () => process.exit(1));\""]
|
test: ["CMD", "curl", "-fsS", "http://localhost:9000/health"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 6
|
retries: 6
|
||||||
@@ -77,7 +77,7 @@ services:
|
|||||||
- ovis-backend-mongodb-data-preprocessing
|
- ovis-backend-mongodb-data-preprocessing
|
||||||
- ovis-backend-data-import
|
- ovis-backend-data-import
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "test -d /app/node_modules/mongodb"]
|
test: ["CMD", "curl", "-fsS", "-X", "POST", "-H", "content-type: application/json", "-d", "{\"query\":\"{__typename}\"}", "http://localhost:4001/graphql"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
|||||||
Reference in New Issue
Block a user