Initial commit - cleaned repository
This commit is contained in:
85
docker-compose-scheduler.yml
Normal file
85
docker-compose-scheduler.yml
Normal file
@ -0,0 +1,85 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
# 키워드별 전용 스케줄러 (AI 키워드)
|
||||
pipeline-scheduler-ai:
|
||||
build:
|
||||
context: ./services/pipeline
|
||||
dockerfile: scheduler/Dockerfile
|
||||
container_name: ${COMPOSE_PROJECT_NAME}_scheduler_ai
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- redis
|
||||
- mongodb
|
||||
- pipeline-rss-collector
|
||||
environment:
|
||||
- REDIS_URL=redis://redis:6379
|
||||
- MONGODB_URL=mongodb://mongodb:27017
|
||||
- DB_NAME=ai_writer_db
|
||||
- KEYWORD=AI
|
||||
- INTERVAL_MINUTES=60
|
||||
- PRIORITY=1
|
||||
- MAX_ARTICLES=100
|
||||
- LOG_LEVEL=INFO
|
||||
command: python single_keyword_scheduler.py
|
||||
volumes:
|
||||
- ./services/pipeline/shared:/app/shared:ro
|
||||
networks:
|
||||
- site11_network
|
||||
|
||||
# 키워드별 전용 스케줄러 (경제 키워드)
|
||||
pipeline-scheduler-economy:
|
||||
build:
|
||||
context: ./services/pipeline
|
||||
dockerfile: scheduler/Dockerfile
|
||||
container_name: ${COMPOSE_PROJECT_NAME}_scheduler_economy
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- redis
|
||||
- mongodb
|
||||
- pipeline-rss-collector
|
||||
environment:
|
||||
- REDIS_URL=redis://redis:6379
|
||||
- MONGODB_URL=mongodb://mongodb:27017
|
||||
- DB_NAME=ai_writer_db
|
||||
- KEYWORD=경제
|
||||
- INTERVAL_MINUTES=120
|
||||
- PRIORITY=0
|
||||
- MAX_ARTICLES=100
|
||||
- LOG_LEVEL=INFO
|
||||
command: python single_keyword_scheduler.py
|
||||
volumes:
|
||||
- ./services/pipeline/shared:/app/shared:ro
|
||||
networks:
|
||||
- site11_network
|
||||
|
||||
# 키워드별 전용 스케줄러 (테크놀로지 키워드)
|
||||
pipeline-scheduler-tech:
|
||||
build:
|
||||
context: ./services/pipeline
|
||||
dockerfile: scheduler/Dockerfile
|
||||
container_name: ${COMPOSE_PROJECT_NAME}_scheduler_tech
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- redis
|
||||
- mongodb
|
||||
- pipeline-rss-collector
|
||||
environment:
|
||||
- REDIS_URL=redis://redis:6379
|
||||
- MONGODB_URL=mongodb://mongodb:27017
|
||||
- DB_NAME=ai_writer_db
|
||||
- KEYWORD=테크놀로지
|
||||
- INTERVAL_MINUTES=60
|
||||
- PRIORITY=1
|
||||
- MAX_ARTICLES=100
|
||||
- LOG_LEVEL=INFO
|
||||
command: python single_keyword_scheduler.py
|
||||
volumes:
|
||||
- ./services/pipeline/shared:/app/shared:ro
|
||||
networks:
|
||||
- site11_network
|
||||
|
||||
networks:
|
||||
site11_network:
|
||||
external: true
|
||||
name: site11_network
|
||||
Reference in New Issue
Block a user