feat: Replace SearXNG with DuckDuckGo for product search

- Remove SearXNG container and configuration files
- Add duckduckgo-search library for web search
- Create duckduckgo_service.py with async search support
- Update search_service.py to use DuckDuckGo instead of SearXNG
- Fix BROWSERLESS_URL port to 3012

This eliminates the persistent limiter.toml directory issue and
provides a simpler, more reliable search solution.
This commit is contained in:
Claude committed 2025-11-22 14:38:03 +00:00
1 parent 528c34eb6b
commit 36415b9cfc
7 files changed
+183 -283

No files matched your search

+1 -24
View File
@@ -12,8 +12,7 @@ services:
- "8555:8555"
environment:
- DATABASE_URL=postgresql://priceflow:priceflow@db:5432/priceflow
- BROWSERLESS_URL=ws://browserless:3000
- SEARXNG_URL=http://searxng:8080
- BROWSERLESS_URL=ws://browserless:3012
- LOG_LEVEL=INFO
- CORS_ORIGINS=*
depends_on:
@@ -21,8 +20,6 @@ services:
condition: service_healthy
browserless:
condition: service_started
searxng:
condition: service_started
volumes:
- screenshots_data:/app/screenshots
networks:
@@ -50,26 +47,6 @@ services:
networks:
- nginx_default
# SearXNG - Moteur de recherche auto-hébergé
searxng:
image: searxng/searxng:latest
container_name: priceflow-searxng
restart: unless-stopped
ports:
- "8888:8080"
environment:
- SEARXNG_BASE_URL=http://searxng:8080
- SEARXNG_SECRET=priceflow-searxng-secret
volumes:
# Mount entire config directory to avoid file/directory issues
- ./searxng:/etc/searxng:rw
dns:
- 8.8.8.8
- 8.8.4.4
- 1.1.1.1
networks:
- nginx_default
# Browserless - Navigateur headless pour le scraping
browserless:
image: ghcr.io/browserless/chromium:latest