version: '3.8' services: cryptoai: build: context: . dockerfile: Dockerfile container_name: cryptoai image: cryptoai:0.0.1 restart: unless-stopped volumes: # 挂载配置文件 - ./cryptoai/config/config.yaml:/app/cryptoai/config/config.yaml # 持久化数据和日志 - cryptoai_data:/app/cryptoai/data - cryptoai_logs:/app/logs command: ["--run-once", "--agent", "crypto"] volumes: cryptoai_data: cryptoai_logs: