diff --git a/services/docker-compose.yml b/services/docker-compose.yml index cb4d618..dd5275e 100644 --- a/services/docker-compose.yml +++ b/services/docker-compose.yml @@ -76,3 +76,22 @@ services: interval: 60s timeout: 5s retries: 3 + + task-watcher: + build: + context: ./task-watcher + container_name: task-watcher + restart: unless-stopped + ports: + - "18713:8000" + environment: + - TZ=Asia/Seoul + - REDIS_URL=${REDIS_URL:-redis://192.168.45.54:6379} + - STOCK_BASE_URL=${STOCK_BASE_URL:-http://192.168.45.54:18500} + - TRADING_START=${TRADING_START:-07:00} + - TRADING_END=${TRADING_END:-16:30} + healthcheck: + test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"] + interval: 60s + timeout: 5s + retries: 3