From db8cf888ef7b29a97ad53634c8c30b474983f50e Mon Sep 17 00:00:00 2001 From: thuanle Date: Wed, 8 Jul 2026 08:22:54 +0700 Subject: [PATCH] gitea-mcp healcheck --- gitea-mcp.Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gitea-mcp.Dockerfile b/gitea-mcp.Dockerfile index adb7226..86f3b89 100644 --- a/gitea-mcp.Dockerfile +++ b/gitea-mcp.Dockerfile @@ -33,5 +33,11 @@ RUN chmod +x /usr/local/bin/gitea-mcp # Cấu hình thư mục log ENV HOME=/app +# Cổng HTTP mặc định (đổi qua flag -p khi chạy nếu cần) +EXPOSE 8080 + +HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \ + CMD curl -s -o /dev/null http://localhost:8080/ || exit 1 + # Chạy binary ENTRYPOINT ["gitea-mcp"] \ No newline at end of file