Browse Source

fix: healthcheck script

Signed-off-by: rare-magma <rare-magma@posteo.eu>
pull/3621/head
rare-magma 1 year ago
parent
commit
5361bca4b2
Failed to extract signature
  1. 5
      docker/healthcheck.js

5
docker/healthcheck.js

@ -1,10 +1,9 @@
import { request } from "node:http";
const request = require("node:http");
const options = {
host : "localhost",
path: "/api/v1/health",
port : "3333",
timeout : 2000
};
const healthCheck = request(options, (res) => {
@ -18,7 +17,7 @@ const healthCheck = request(options, (res) => {
});
healthCheck.on('error', (err) => {
console.error(err);
console.error(err.message);
process.exit(1);
});

Loading…
Cancel
Save