This commit is contained in:
m
2026-07-12 10:51:09 +02:00
parent 874d8679ac
commit f303ac8b5c
5 changed files with 188 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
services:
paddleocr:
image: paddlecloud/paddleocr:2.6-cpu-latest
ports:
- "9090:8080"
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
# volumes:
# - backend-data:/data
# - ./backend/uploads:/app/uploads
# depends_on:
# paddleocr:
# condition: service_healthy
# restart: unless-stopped
volumes:
backend-data: