From aca955972a0b86efc2b6886cd3731b17ed1cbd81 Mon Sep 17 00:00:00 2001 From: Daniel Volz Date: Mon, 22 Dec 2025 11:30:22 +0100 Subject: [PATCH] feat: add healthcheck configuration for backend service in docker-compose --- docker-compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 8af2186..3a57d33 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,6 +11,12 @@ services: - .env ports: - "3000:3000" + healthcheck: + test: ["CMD-SHELL", "node -e \"require('http').get('http://localhost:3000/health', (r) => process.exit(r.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1))\""] + interval: 30s + timeout: 10s + retries: 3 + start_period: 40s frontend-dev: image: node:25-slim