From 0beaf351f0ab75187aed68773525c20032e6b29d Mon Sep 17 00:00:00 2001 From: Marcel Date: Mon, 13 Apr 2026 12:29:21 +0200 Subject: [PATCH] fix(docker): soften ocr-service dependency and clean up compose Changed ocr-service dependency from service_healthy to service_started since the backend already handles OCR unavailability gracefully. Removed unused APP_S3_INTERNAL_URL env var. Added expose directive and .dockerignore for ocr-service. Co-Authored-By: Claude Opus 4.6 (1M context) --- docker-compose.yml | 5 +++-- ocr-service/.dockerignore | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 ocr-service/.dockerignore diff --git a/docker-compose.yml b/docker-compose.yml index ebea678e..46ed94b2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -78,6 +78,8 @@ services: dockerfile: Dockerfile container_name: archive-ocr restart: unless-stopped + expose: + - "8000" mem_limit: 8g memswap_limit: 8g volumes: @@ -117,7 +119,7 @@ services: mailpit: condition: service_started ocr-service: - condition: service_healthy + condition: service_started environment: SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/${POSTGRES_DB} SPRING_DATASOURCE_USERNAME: ${POSTGRES_USER} @@ -139,7 +141,6 @@ services: SPRING_MAIL_PROPERTIES_MAIL_SMTP_AUTH: ${MAIL_SMTP_AUTH:-false} SPRING_MAIL_PROPERTIES_MAIL_SMTP_STARTTLS_ENABLE: ${MAIL_STARTTLS_ENABLE:-false} APP_OCR_BASE_URL: http://ocr-service:8000 - APP_S3_INTERNAL_URL: http://minio:9000 ports: - "${PORT_BACKEND}:8080" networks: diff --git a/ocr-service/.dockerignore b/ocr-service/.dockerignore new file mode 100644 index 00000000..9acf40b9 --- /dev/null +++ b/ocr-service/.dockerignore @@ -0,0 +1,6 @@ +__pycache__ +*.pyc +.venv +models/ +.git +.pytest_cache