Files
Kazier/docker-compose.yml
T
2026-07-12 22:11:57 +02:00

55 lines
1.2 KiB
YAML

services:
paddleocr:
build:
context: ./backend/ocr-server
dockerfile: Dockerfile
ports:
- "9090:8080"
environment:
- OCR_LANG=fr
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 5
start_period: 120s
spacy-nlp:
build:
context: ./backend/nlp-server
dockerfile: Dockerfile
ports:
- "9091:8080"
environment:
- NLP_MODEL=fr_core_news_md
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
# backend:
# build:
# context: ./backend
# dockerfile: Dockerfile
# ports:
# - "8080:8080"
# environment:
# - PORT=8080
# - DB_PATH=/data/vaultdrop.db
# - OCR_ENDPOINT=http://paddleocr:8080
# - NLP_ENDPOINT=http://spacy-nlp:8080
# volumes:
# - backend-data:/data
# - ./backend/uploads:/app/uploads
# depends_on:
# paddleocr:
# condition: service_healthy
# restart: unless-stopped
volumes:
backend-data: