Update docker file healthcheck to use /healthcheck instead of /ping

This commit is contained in:
advplyr 2022-07-24 15:46:19 -05:00
parent 976427b0b3
commit 9d7ffdfcd0
2 changed files with 2 additions and 1 deletions

View File

@ -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"]

View File

@ -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}`)