Add healthcheck for Docker

This commit is contained in:
Sung 2025-10-18 12:38:59 -07:00
commit 190fcd8ffc

View file

@ -14,3 +14,6 @@ ENTRYPOINT ["./entrypoint.sh"]
CMD ./dnote-server start
EXPOSE 3001
HEALTHCHECK --interval=30s --timeout=3s --start-period=10s \
CMD wget --no-verbose --tries=1 -O /dev/null http://localhost:3001/health || exit 1