Move the RSS scraper into its own repository and the MCP data server into its own repository. This repo keeps the article server, AI processor, and embedding service. Compose and pyproject trimmed accordingly.
51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
services:
|
|
article-server:
|
|
build: ./articleServer
|
|
platform: linux/amd64
|
|
container_name: stockdocs-article-server
|
|
restart: unless-stopped
|
|
networks:
|
|
- ainetwork
|
|
ports:
|
|
- "5008:5008"
|
|
volumes:
|
|
- ./articles:/app/articles
|
|
environment:
|
|
- ARTICLE_DIR=/app/articles
|
|
ai_processor:
|
|
build: ./ai_processor
|
|
platform: linux/amd64
|
|
container_name: stockdocs-ai-processor
|
|
restart: unless-stopped
|
|
networks:
|
|
- ainetwork
|
|
volumes:
|
|
- ./articles:/app/articles
|
|
- ./ai_processor/output:/app/output
|
|
environment:
|
|
- AI_SERVICE_URL=http://example.com:4000
|
|
- AI_SERVICE_API_KEY=111
|
|
embedder:
|
|
build: ./embedding
|
|
platform: linux/amd64
|
|
container_name: stockdocs-embedder
|
|
restart: unless-stopped
|
|
networks:
|
|
- ainetwork
|
|
volumes:
|
|
- ./articles:/scraper/articles
|
|
- ./embedding/logs:/app/logs
|
|
environment:
|
|
- CHROMADB_HOST=example.com
|
|
- CHROMADB_PORT=8000
|
|
- AI_SERVER_HOST=example.com
|
|
- AI_SERVER_PORT=4000
|
|
- CACHE_FILE=/app/processed_articles_cache.json
|
|
- LOG_LEVEL=INFO
|
|
- AI_SERVICE_API_KEY=111
|
|
|
|
networks:
|
|
ainetwork:
|
|
external: true
|
|
name: ainetwork
|