From e57c46afdcfc339d98be7f274e96e0830f1f54e6 Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 2 Feb 2026 17:35:52 +0100 Subject: [PATCH] Fix health check: use node instead of wget (not available in Alpine image) Also increase start_period to 60s to allow time for migrations on first boot. Co-Authored-By: Claude Opus 4.5 --- docker/docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 0a78f0e..46b4b00 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -50,11 +50,11 @@ services: networks: - mopc-network healthcheck: - test: ["CMD", "wget", "-q", "--spider", "http://localhost:7600/api/health"] + test: ["CMD", "node", "-e", "fetch('http://localhost:7600/api/health').then(r=>{if(!r.ok)throw r;process.exit(0)}).catch(()=>process.exit(1))"] interval: 30s timeout: 10s retries: 3 - start_period: 40s + start_period: 60s postgres: image: postgres:16-alpine