feat: Add healthcheck for docker deployments
fix: Missing healthcheck.js fix: missing healthcheck.js fix: HEALTHCHECK command
This commit is contained in:
committed by
Maksim Eltyshev
parent
bc0bdcea33
commit
09b13b5588
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user