- Remove duplicate claude_api provider to fix automatic failover - Enhance error detection with HTTP status codes and more indicators - Add comprehensive README documentation with manual switching - Implement Discord bot with Claude Code CLI integration - Support /terminal and /claude commands with AI-powered responses 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
version: '3.8'
|
||
|
||
services:
|
||
discord_bot:
|
||
build: .
|
||
container_name: discord_bot
|
||
restart: unless-stopped
|
||
volumes:
|
||
# 访问全局token文件(只读)
|
||
- ../tokens.txt:/app/tokens.txt:ro
|
||
# 数据持久化
|
||
- ./databases:/app/databases
|
||
- ./backups:/app/backups
|
||
# 访问FinancialReport的数据库(只读)
|
||
- ../FinancialReport/data/processed:/external/financial_report:ro
|
||
environment:
|
||
- DB_PATH=/app/databases/discord_bot.db
|
||
- FR_DB_PATH=/external/financial_report/FinancialDataBaseProcessed.db
|
||
- TOKEN_PATH=/app/tokens.txt
|
||
- DISCORD_PREFIX=/
|
||
depends_on:
|
||
- financial_report
|
||
networks:
|
||
- discord_network
|
||
|
||
financial_report:
|
||
build: ../FinancialReport
|
||
container_name: financial_report
|
||
restart: unless-stopped
|
||
volumes:
|
||
- ../tokens.txt:/app/tokens.txt:ro
|
||
- ../FinancialReport/data:/app/data
|
||
- ../FinancialReport/output:/app/output
|
||
- ./databases:/external/discord_bot:ro
|
||
environment:
|
||
- DB_PATH=/app/data/processed/FinancialDataBaseProcessed.db
|
||
- BOT_DB_PATH=/external/discord_bot/discord_bot.db
|
||
- TOKEN_PATH=/app/tokens.txt
|
||
- REPORT_OUTPUT_PATH=/app/output/reports
|
||
networks:
|
||
- discord_network
|
||
|
||
networks:
|
||
discord_network:
|
||
driver: bridge |