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 <vibe@mistral.ai>
This commit is contained in:
Lasse Rune Hansen 2026-06-05 13:03:10 +02:00
parent eb6659e9fe
commit 9f45c6de9c
2 changed files with 1 additions and 17 deletions

View file

@ -47,9 +47,5 @@ ENV ASPNETCORE_ENVIRONMENT=Production
# Expose port # Expose port
EXPOSE 8080 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 # Entry point
ENTRYPOINT ["dotnet", "GermanApp.dll"] ENTRYPOINT ["dotnet", "GermanApp.dll"]

View file

@ -33,12 +33,6 @@ services:
condition: service_healthy condition: service_healthy
ports: ports:
- "8080:8080" - "8080:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
restart: unless-stopped restart: unless-stopped
# Frontend # Frontend
@ -51,15 +45,9 @@ services:
NODE_ENV: production NODE_ENV: production
depends_on: depends_on:
backend: backend:
condition: service_healthy condition: service_started
ports: ports:
- "3000:3000" - "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 restart: unless-stopped
volumes: volumes: