38 lines
943 B
YAML
38 lines
943 B
YAML
version: "3.9"
|
|
|
|
services:
|
|
docling:
|
|
image: quay.io/docling-project/docling-serve:latest
|
|
container_name: eib_docling
|
|
ports:
|
|
- "127.0.0.1:5001:5001"
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:5001/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 5
|
|
start_period: 60s
|
|
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: eib_app
|
|
ports:
|
|
- "127.0.0.1:8081:8080"
|
|
volumes:
|
|
- ./uploads:/app/uploads
|
|
- ./outputs:/app/outputs
|
|
- ./app/tools/eib/merchant_lookup.csv:/app/app/tools/eib/merchant_lookup.csv
|
|
environment:
|
|
- FLASK_ENV=production
|
|
- DOCLING_URL=http://docling:5001
|
|
- UPLOAD_FOLDER=/app/uploads
|
|
- OUTPUT_FOLDER=/app/outputs
|
|
- PORT=8080
|
|
- PYTHONUNBUFFERED=1
|
|
depends_on:
|
|
docling:
|
|
condition: service_healthy
|
|
restart: unless-stopped |