From acfbd6e5270d09af145b3b853ad56aae3306ea56 Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Sun, 19 Jul 2026 02:23:46 +0200 Subject: [PATCH] papra + wishlist: fix lying wget healthchecks (images ship only node) Both crashes above were masking a second defect: once each app actually stayed up, it sat permanently unhealthy because its healthcheck called wget, and neither image has wget or curl -- only node. Traefik does not route to an unhealthy container, so both would have served 404 to the customer regardless. Switched both to the Node-exec family (http.get, exit non-zero on 5xx/error). Campaign 7 catalog sweep. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01Nn3VgQk9iwEGgyx6QJ2NvE --- templates/papra/docker-compose.yml | 5 ++++- templates/wishlist/docker-compose.yml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/templates/papra/docker-compose.yml b/templates/papra/docker-compose.yml index adbf9b7..cf91c66 100644 --- a/templates/papra/docker-compose.yml +++ b/templates/papra/docker-compose.yml @@ -24,7 +24,10 @@ services: limits: memory: 256M healthcheck: - test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:1221"] + # A papra képfájlban nincs wget és nincs curl — csak node. A korábbi wget + # próba ezért soha nem futott le, a konténer véglegesen unhealthy maradt, + # és a Traefik nem irányított rá forgalmat (404). + test: ["CMD", "node", "-e", "const http=require('http');http.get('http://127.0.0.1:1221',r=>process.exit(r.statusCode<500?0:1)).on('error',()=>process.exit(1))"] interval: 30s timeout: 5s retries: 3 diff --git a/templates/wishlist/docker-compose.yml b/templates/wishlist/docker-compose.yml index c37d65e..deb3431 100644 --- a/templates/wishlist/docker-compose.yml +++ b/templates/wishlist/docker-compose.yml @@ -22,7 +22,10 @@ services: limits: memory: 128M healthcheck: - test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:3000"] + # A wishlist képfájlban nincs wget és nincs curl — csak node. A korábbi + # wget próba ezért soha nem futott le, a konténer véglegesen unhealthy + # maradt, és a Traefik nem irányított rá forgalmat (404). + test: ["CMD", "node", "-e", "const http=require('http');http.get('http://127.0.0.1:3000',r=>process.exit(r.statusCode<500?0:1)).on('error',()=>process.exit(1))"] interval: 30s timeout: 5s retries: 3