Add public health endpoint for Docker healthcheck
This commit is contained in:
+1
-1
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user