- Needs to be outbound, i.e. Agent -> Checkly Backend
- Should have some sort of process monitor (Docker itself? Separate PM2?)
- Otherwise, a simple axios request every X seconds should do..
With Docker has a built-in "HEALTHCHECK" function in their Dockerfile definitions
i.e.
FROM node:alpine
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 3000
HEALTHCHECK --interval=12s --timeout=12s --start-period=30s \
CMD node healthcheck.js
CMD ["node","real-app.js"]
- webhook.site playground
- Docker HEALTHCHECK in JavaScript