fix(deploy): docker health check failure

This commit is contained in:
Ran
2026-02-14 22:38:51 +08:00
parent 5c46d41ebf
commit e6580d7837
3 changed files with 6 additions and 8 deletions
+3 -1
View File
@@ -31,6 +31,8 @@ COPY --from=builder /build/node_modules /node_modules
EXPOSE 8081
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:8081/health || exit 1
CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:8081/health \
|| wget --no-verbose --tries=1 --spider http://agent:8081/health \
|| exit 1
CMD ["bun", "run", "dist/index.js"]
+3 -1
View File
@@ -70,6 +70,8 @@ RUN mkdir -p /opt/memoh/data
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:8080/health || exit 1
CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:8080/health \
|| wget --no-verbose --tries=1 --spider http://server:8080/health \
|| exit 1
CMD ["/app/memoh-server"]