Fix healthcheck: use wget -qO instead of --spider (BusyBox compat)

This commit is contained in:
MayaTheShy
2026-03-21 17:57:25 -04:00
parent fe6ac23329
commit d4d6e5e480
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ services:
- inventory-network
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3001/api/health"]
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:3001/api/health"]
interval: 30s
timeout: 3s
start_period: 5s

View File

@@ -12,6 +12,6 @@ COPY . .
EXPOSE 3001
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget --spider -q http://localhost:3001/api/health
CMD wget -qO /dev/null http://localhost:3001/api/health
CMD ["node", "server.js"]