spacy nlp ner
This commit is contained in:
@@ -15,6 +15,22 @@ services:
|
||||
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
|
||||
@@ -25,6 +41,7 @@ services:
|
||||
# - 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
|
||||
|
||||
Reference in New Issue
Block a user