mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 12:49:43 +02:00
feat: Add healthcheck for docker deployments
fix: Missing healthcheck.js fix: missing healthcheck.js fix: HEALTHCHECK command
This commit is contained in:
parent
77ba21c4a7
commit
2ceeb0a71a
4 changed files with 50 additions and 22 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue