Add article server deployment to docker-compose and remove scraper service
Added article-server service to docker-compose.yml that builds from articleServer directory and maps articles volume from /home/user/StockDocs/scraper/articles. Removed the scraper service as it's no longer needed. The article server will now serve articles on port 5008.
This commit is contained in:
parent
c6f3cb3e65
commit
5e52142909
@ -1,15 +1,4 @@
|
|||||||
services:
|
services:
|
||||||
scraper:
|
|
||||||
build: ./scraper
|
|
||||||
platform: linux/amd64
|
|
||||||
container_name: stockdocs-scraper
|
|
||||||
restart: unless-stopped
|
|
||||||
networks:
|
|
||||||
- ainetwork
|
|
||||||
volumes:
|
|
||||||
- ./scraper/articles:/app/articles
|
|
||||||
environment:
|
|
||||||
- FEED_FILE=rss_feeds.json
|
|
||||||
flask-app:
|
flask-app:
|
||||||
build: ./MCPServer
|
build: ./MCPServer
|
||||||
platform: linux/amd64
|
platform: linux/amd64
|
||||||
@ -21,6 +10,19 @@ services:
|
|||||||
- "5005:5005"
|
- "5005:5005"
|
||||||
environment:
|
environment:
|
||||||
- FLASK_ENV=development
|
- FLASK_ENV=development
|
||||||
|
article-server:
|
||||||
|
build: ./articleServer
|
||||||
|
platform: linux/amd64
|
||||||
|
container_name: stockdocs-article-server
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- ainetwork
|
||||||
|
ports:
|
||||||
|
- "5008:5008"
|
||||||
|
volumes:
|
||||||
|
- /home/user/StockDocs/scraper/articles:/app/articles
|
||||||
|
environment:
|
||||||
|
- ARTICLE_DIR=/app/articles
|
||||||
# ai_processor:
|
# ai_processor:
|
||||||
# build: ./ai_processor
|
# build: ./ai_processor
|
||||||
# platform: linux/amd64
|
# platform: linux/amd64
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user