docs: contrat api-v1 consolidé + conventions (mobile = source de vérité)

This commit is contained in:
m
2026-09-10 07:10:19 +02:00
parent 4ad2166559
commit e7f304da0a
6 changed files with 165 additions and 24 deletions
+11 -19
View File
@@ -1,19 +1,14 @@
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
# paddleocr envisagé, non retenu — OCR via Tesseract (appel système), cf. docs/api-v1.md
# paddleocr:
# build:
# context: ./backend/ocr-server
# dockerfile: Dockerfile
# ports:
# - "9090:8080"
# environment:
# - OCR_LANG=fr
# restart: unless-stopped
postgres:
image: postgres:17-alpine
@@ -41,15 +36,12 @@ services:
# environment:
# - PORT=8080
# - DATABASE_URL=postgres://vaultdrop:vaultdrop@postgres:5432/vaultdrop?sslmode=disable
# - OCR_ENDPOINT=http://paddleocr:8080
# volumes:
# - ./backend/uploads:/app/uploads
# depends_on:
# paddleocr:
# condition: service_healthy
# postgres:
# condition: service_healthy
# restart: unless-stopped
volumes:
postgres-data:
postgres-data: