feat: Add healthcheck for docker deployments

fix: Missing healthcheck.js

fix: missing healthcheck.js

fix: HEALTHCHECK command
This commit is contained in:
Daniel Hiller
2024-04-08 01:24:50 +02:00
committed by Maksim Eltyshev
parent bc0bdcea33
commit 09b13b5588
4 changed files with 50 additions and 22 deletions
+4
View File
@@ -38,6 +38,7 @@ WORKDIR /app
COPY --chown=node:node start.sh .
COPY --chown=node:node server .
COPY --chown=node:node healthcheck.js .
RUN mv .env.sample .env
@@ -52,4 +53,7 @@ VOLUME /app/private/attachments
EXPOSE 1337
HEALTHCHECK --interval=10s --timeout=2s --start-period=15s \
CMD node ./healthcheck.js
CMD ["./start.sh"]