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:
@@ -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:
|
||||
|
||||
6
ocr-service/.dockerignore
Normal file
6
ocr-service/.dockerignore
Normal file
@@ -0,0 +1,6 @@
|
||||
__pycache__
|
||||
*.pyc
|
||||
.venv
|
||||
models/
|
||||
.git
|
||||
.pytest_cache
|
||||
Reference in New Issue
Block a user