Add public health endpoint for Docker healthcheck

This commit is contained in:
Tor Matz Andrén
2026-05-14 17:17:51 +02:00
parent 33f077ed1e
commit abc63c0cec
3 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -27,6 +27,6 @@ USER spooty
EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=3 \
CMD curl -fsS http://127.0.0.1:3000/api || exit 1
CMD curl -fsS http://127.0.0.1:3000/api/health || exit 1
CMD ["node", "backend/main.js"]