fix: remove defunct momo-telegram-bot from all CD/compose references
Some checks failed
CD Pipeline / deploy (push) Failing after 1m20s
Some checks failed
CD Pipeline / deploy (push) Failing after 1m20s
CD was failing with 'No such container: momo-telegram-bot' because the Gitea Actions restart step still listed all three containers. Changes: 1. .gitea/workflows/cd.yaml: - Sync mode: docker restart now only targets momo-pro-system momo-scheduler - Rebuild mode: docker compose up no longer includes telegram-bot service 2. docker-compose.yml: - Removed telegram-bot service block (38 lines) - Syncs local repo with remote server state (already removed there)
This commit is contained in:
@@ -247,48 +247,11 @@ services:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Telegram Bot - 趨勢查詢與推播服務
|
||||
# 啟動: docker-compose up -d telegram-bot
|
||||
# ---------------------------------------------------------------------------
|
||||
telegram-bot:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: ${MOMO_IMAGE:-registry.wooo.work/wooo/momo-pro-system}:${VERSION:-latest}
|
||||
container_name: momo-telegram-bot
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- "com.centurylinklabs.watchtower.enable=true"
|
||||
init: true
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
- ./logs:/app/logs
|
||||
- ./config.py:/app/config.py:ro
|
||||
- ./run_telegram_bot.py:/app/run_telegram_bot.py:ro
|
||||
- ./services:/app/services:ro
|
||||
- ./database:/app/database:ro
|
||||
environment:
|
||||
- FLASK_ENV=production
|
||||
- PYTHONUNBUFFERED=1
|
||||
- TZ=Asia/Taipei
|
||||
env_file:
|
||||
- .env
|
||||
command: ["python", "run_telegram_bot.py"]
|
||||
depends_on:
|
||||
- momo-app
|
||||
networks:
|
||||
- momo-network
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
# ===========================================================================
|
||||
# Monitoring Services (使用 --profile monitoring 啟用)
|
||||
# ===========================================================================
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Prometheus - 指標收集與儲存
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user