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: