deploy: use node for healthcheck
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ services:
|
|||||||
- ./extensions:/directus/extensions
|
- ./extensions:/directus/extensions
|
||||||
env_file: ".env"
|
env_file: ".env"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "-qO-", "http://localhost:8055/server/health"]
|
test: ["CMD-SHELL", "node -e \"require('http').get('http://localhost:8055/server/health',r=>process.exit(r.statusCode<400?0:1)).on('error',()=>process.exit(1))\""]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 12
|
retries: 12
|
||||||
|
|||||||
Reference in New Issue
Block a user