Add Google Search service with advanced features

- Implement multi-method search (Custom Search API, SerpAPI, web scraping)
- Support up to 20 results with pagination
- Add date filtering and sorting capabilities
- Include full content fetching option
- Add country/language specific search support
- Implement Redis caching for performance
- Create comprehensive documentation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
jungwoo choi
2025-09-12 11:22:50 +09:00
parent 8866a90f65
commit 67cadb9aba
9 changed files with 980 additions and 0 deletions

View File

@ -354,6 +354,35 @@ services:
timeout: 10s
retries: 3
# Google Search Service
google-search-backend:
build:
context: ./services/google-search/backend
dockerfile: Dockerfile
container_name: ${COMPOSE_PROJECT_NAME}_google_search_backend
ports:
- "8016:8000"
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_DB=2
- GOOGLE_API_KEY=AIzaSyBakoCsDP_oF5V4oq_eEKs4eQb-ekqxnRM
- GOOGLE_SEARCH_ENGINE_ID=35bfbdb7b6f244569
- SERPAPI_KEY=${SERPAPI_KEY:-}
- DEFAULT_LANGUAGE=ko
- DEFAULT_COUNTRY=kr
- CACHE_TTL=3600
depends_on:
- redis
networks:
- site11_network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
networks:
site11_network:
driver: bridge