From 8f245d2b0e1388a4201ad56b9a5cf825470286f2 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 27 Jul 2020 19:03:05 +0200 Subject: [PATCH] fix healthcheck --- docker-compose.yml | 1 - health-check/index.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 1ce9002a..a5c60631 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -110,7 +110,6 @@ services: - shared environment: - PORTAL_URL=nginx - - HOSTNAME=health-check expose: - 3100 depends_on: diff --git a/health-check/index.js b/health-check/index.js index 18d2ad79..c34d3770 100644 --- a/health-check/index.js +++ b/health-check/index.js @@ -9,7 +9,7 @@ const bodyparser = require("body-parser"); require("./schedule"); -const host = process.env.HOSTNAME || "localhost"; +const host = process.env.HOSTNAME || "0.0.0.0"; const port = process.env.PORT || 3100; const server = express();