mirror of
https://github.com/samply/bridgehead.git
synced 2026-08-13 18:12:37 +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:
|
||||
- ovis-backend-database-mongodb
|
||||
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
|
||||
timeout: 5s
|
||||
retries: 6
|
||||
@@ -77,7 +77,7 @@ services:
|
||||
- ovis-backend-mongodb-data-preprocessing
|
||||
- ovis-backend-data-import
|
||||
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
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
Reference in New Issue
Block a user