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) <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-13 12:29:21 +02:00
parent b7fd4018c2
commit 0beaf351f0
2 changed files with 9 additions and 2 deletions

View File

@@ -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: