Add Docker healthcheck
This commit is contained in:
parent
3213edc237
commit
46726e4a6a
@ -9,4 +9,7 @@ COPY . .
|
|||||||
|
|
||||||
EXPOSE 3005
|
EXPOSE 3005
|
||||||
|
|
||||||
|
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
||||||
|
CMD wget -qO- http://localhost:3005/ || exit 1
|
||||||
|
|
||||||
CMD ["node", "app.js"]
|
CMD ["node", "app.js"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user