Add HEALTHCHECK with 120s start period for Next.js startup time
This commit is contained in:
@@ -60,4 +60,5 @@ ENTRYPOINT ["/sbin/tini", "--"]
|
|||||||
|
|
||||||
|
|
||||||
ENV HOSTNAME=0.0.0.0
|
ENV HOSTNAME=0.0.0.0
|
||||||
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=120s --retries=5 CMD wget -qO- http://localhost:3000/ || exit 1
|
||||||
CMD ["node", "server.js"]
|
CMD ["node", "server.js"]
|
||||||
|
|||||||
Reference in New Issue
Block a user