From 9d7ffdfcd06e3ff8253b245e04e72447224401b1 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 24 Jul 2022 15:46:19 -0500 Subject: [PATCH] Update docker file healthcheck to use /healthcheck instead of /ping --- Dockerfile | 2 +- server/Server.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 43ee4eb4..47aced8a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,5 +25,5 @@ HEALTHCHECK \ --interval=30s \ --timeout=3s \ --start-period=10s \ - CMD curl -f http://127.0.0.1/ping || exit 1 + CMD curl -f http://127.0.0.1/healthcheck || exit 1 CMD ["npm", "start"] diff --git a/server/Server.js b/server/Server.js index b80a6942..cac5deb7 100644 --- a/server/Server.js +++ b/server/Server.js @@ -255,6 +255,7 @@ class Server { Logger.info('Recieved ping') res.json({ success: true }) }) + app.get('/healthcheck', (req, res) => res.sendStatus(200)) this.server.listen(this.Port, this.Host, () => { Logger.info(`Listening on http://${this.Host}:${this.Port}`)