From 9f45c6de9cecf2109d77abaa8141d6ccb921c0f6 Mon Sep 17 00:00:00 2001 From: Lasse Rune Hansen Date: Fri, 5 Jun 2026 13:03:10 +0200 Subject: [PATCH] fix(infra): remove problematic health checks for now - Remove HEALTHCHECK from backend Dockerfile - Remove health checks from docker-compose.yml - Change frontend depends_on to service_started - Health checks can be added back once image tools are known Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- GermanApp/Dockerfile | 4 ---- docker-compose.yml | 14 +------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/GermanApp/Dockerfile b/GermanApp/Dockerfile index e8497c4..a2cbaea 100644 --- a/GermanApp/Dockerfile +++ b/GermanApp/Dockerfile @@ -47,9 +47,5 @@ ENV ASPNETCORE_ENVIRONMENT=Production # Expose port EXPOSE 8080 -# Health check - use bash /dev/tcp to check port (no curl needed) -HEALTHCHECK --interval=30s --timeout=3s --start-period=15s --retries=3 \ - CMD bash -c "echo > /dev/tcp/localhost/8080 || exit 1" - # Entry point ENTRYPOINT ["dotnet", "GermanApp.dll"] diff --git a/docker-compose.yml b/docker-compose.yml index c8f71d1..98f1cf6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -33,12 +33,6 @@ services: condition: service_healthy ports: - "8080:8080" - healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:8080/health"] - interval: 30s - timeout: 10s - retries: 3 - start_period: 10s restart: unless-stopped # Frontend @@ -51,15 +45,9 @@ services: NODE_ENV: production depends_on: backend: - condition: service_healthy + condition: service_started ports: - "3000:3000" - healthcheck: - test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/health"] - interval: 30s - timeout: 10s - retries: 3 - start_period: 10s restart: unless-stopped volumes: