Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(docker): disable wget proxy for loopback health checks (#1841)

mazzz1y26eec3bca615
diff --git a/Dockerfile.kaneo b/Dockerfile.kaneo
index b28f7a00d..2c5b57cc8 100644
--- a/Dockerfile.kaneo
+++ b/Dockerfile.kaneo
@@ -114,6 +114,6 @@ USER appuser
EXPOSE 5173
HEALTHCHECK --interval=30s --timeout=5s --start-period=60s --retries=3 \
- CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:5173/api/health || exit 1
+ CMD wget -Y off --no-verbose --tries=1 --spider http://127.0.0.1:5173/api/health || exit 1
CMD ["/usr/local/bin/kaneo-entrypoint.sh"]
diff --git a/apps/api/Dockerfile b/apps/api/Dockerfile
index 802671cc2..d5cc857e5 100644
--- a/apps/api/Dockerfile
+++ b/apps/api/Dockerfile
@@ -90,6 +90,6 @@ EXPOSE 1337
# Add health check
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
- CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:1337/api/health || exit 1
+ CMD wget -Y off --no-verbose --tries=1 --spider http://127.0.0.1:1337/api/health || exit 1
CMD ["node", "--enable-source-maps", "dist/index.js"]
diff --git a/apps/docs/core/installation/docker-compose.mdx b/apps/docs/core/installation/docker-compose.mdx
index 4c9c759c9..e45c03f52 100644
--- a/apps/docs/core/installation/docker-compose.mdx
+++ b/apps/docs/core/installation/docker-compose.mdx
@@ -42,7 +42,7 @@ services:
condition: service_healthy
restart: unless-stopped
healthcheck:
- test: ["CMD", "wget", "--quiet", "--spider", "http://127.0.0.1:5173/api/health"]
+ test: ["CMD", "wget", "-Y", "off", "--quiet", "--spider", "http://127.0.0.1:5173/api/health"]
interval: 30s
timeout: 5s
start_period: 60s
diff --git a/compose.coolify.yml b/compose.coolify.yml
index f37bdefd3..58726e9df 100644
--- a/compose.coolify.yml
+++ b/compose.coolify.yml
@@ -50,7 +50,7 @@ services:
condition: service_healthy
restart: unless-stopped
healthcheck:
- test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:5173/api/health"]
+ test: ["CMD", "wget", "-Y", "off", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:5173/api/health"]
interval: 30s
timeout: 5s
start_period: 60s
diff --git a/compose.yml b/compose.yml
index 0f7180845..3f6a277bb 100644
--- a/compose.yml
+++ b/compose.yml
@@ -26,7 +26,7 @@ services:
condition: service_healthy
restart: unless-stopped
healthcheck:
- test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:5173/api/health"]
+ test: ["CMD", "wget", "-Y", "off", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:5173/api/health"]
interval: 30s
timeout: 5s
start_period: 60s
diff --git a/deploy/kaneo-entrypoint.sh b/deploy/kaneo-entrypoint.sh
index 873e8c859..7f60d131f 100644
--- a/deploy/kaneo-entrypoint.sh
+++ b/deploy/kaneo-entrypoint.sh
@@ -58,7 +58,7 @@ node --enable-source-maps /app/apps/api/dist/index.js &
api_pid=$!
echo "Waiting for API to be ready..."
-until wget --spider --quiet http://127.0.0.1:1337/api/health 2>/dev/null; do
+until wget -Y off --spider --quiet http://127.0.0.1:1337/api/health 2>/dev/null; do
if ! kill -0 "$api_pid" 2>/dev/null; then
echo "API process exited unexpectedly"
exit 1