From a31028401ba2ce2c1a7a644364c606bde5028532 Mon Sep 17 00:00:00 2001 From: Eric Gullickson <16152721+ericgullickson@users.noreply.github.com> Date: Sun, 1 Feb 2026 14:43:24 -0600 Subject: [PATCH] fix: increase backend Docker healthcheck start_period to 3 minutes (refs #64) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The CI was failing because Docker marked the backend unhealthy before the CI wait loop completed. The backend needs time to run migrations and seed vehicle data on startup. Changes: - start_period: 40s -> 180s (3 minutes) - retries: 3 -> 5 (more tolerance) Total time before unhealthy: 180s + (5 × 30s) = 5.5 minutes Co-Authored-By: Claude Opus 4.5 --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 095dd93..17abbf4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -140,8 +140,8 @@ services: - node -e "require('http').get('http://localhost:3001/health', r => process.exit(r.statusCode===200?0:1)).on('error', () => process.exit(1))" interval: 30s timeout: 10s - retries: 3 - start_period: 40s + retries: 5 + start_period: 180s labels: - "traefik.enable=true" - "traefik.docker.network=motovaultpro_backend"