This commit is contained in:
aaron 2025-04-29 12:16:48 +08:00
parent 64906ddd43
commit 9bd2148cf8
3 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ from cryptoai.utils.config_loader import ConfigLoader
def main():
try:
print("定时程序启动")
CryptoAgent().start_agent('BTCUSDT')
# 设置每个4小时运行一次
schedule.every(4).hours.do(CryptoAgent().start_agent)

View File

@ -6,7 +6,7 @@ services:
context: .
dockerfile: Dockerfile
container_name: cryptoai
image: cryptoai:0.0.4
image: cryptoai:0.0.5
restart: unless-stopped
volumes:
# 挂载配置文件