refactor(infra): remove nlp-service from docker-compose files

This commit is contained in:
Marcel
2026-06-07 19:02:17 +02:00
parent fd27dfacc8
commit 00b7c86b6a
2 changed files with 0 additions and 75 deletions

View File

@@ -200,39 +200,6 @@ services:
security_opt:
- no-new-privileges:true
# --- NLP service: rule-based NL query parser ---
# Lightweight FastAPI service; replaces Ollama for smart search query parsing.
# Connects to the DB at startup to build person/tag lookup tables.
nlp-service:
build:
context: ./nlp-service
restart: unless-stopped
expose:
- "8001"
networks:
- archiv-net
environment:
DATABASE_URL: "postgresql://archiv:${POSTGRES_PASSWORD}@db:5432/archiv"
NLP_FUZZY_THRESHOLD: "${NLP_FUZZY_THRESHOLD:-80}"
mem_limit: 256m
memswap_limit: 256m
read_only: true
tmpfs:
- /tmp:size=32m
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8001/health"]
interval: 10s
timeout: 5s
retries: 5
start_period: 15s
depends_on:
db:
condition: service_healthy
backend:
image: familienarchiv/backend:${TAG:-nightly}
build:
@@ -251,8 +218,6 @@ services:
# is a one-shot that must complete successfully. See #510.
create-buckets:
condition: service_completed_successfully
nlp-service:
condition: service_healthy
# Bound to localhost only — Caddy fronts external traffic.
ports:
- "127.0.0.1:${PORT_BACKEND}:8080"
@@ -287,7 +252,6 @@ services:
APP_ADMIN_PASSWORD: ${APP_ADMIN_PASSWORD}
APP_OCR_BASE_URL: http://ocr-service:8000
APP_OCR_TRAINING_TOKEN: ${OCR_TRAINING_TOKEN}
APP_NLP_BASE_URL: http://nlp-service:8001
MAIL_HOST: ${MAIL_HOST}
MAIL_PORT: ${MAIL_PORT:-587}
MAIL_USERNAME: ${MAIL_USERNAME:-}