mirror of
https://github.com/Xe138/AI-Trader.git
synced 2026-04-12 21:47:23 -04:00
Add Docker deployment section to README
Include quick start with Docker Compose Add pre-built image usage instructions Link to detailed Docker documentation
This commit is contained in:
46
README.md
46
README.md
@@ -323,6 +323,52 @@ python3 -m http.server 8000
|
|||||||
# Visit http://localhost:8000
|
# Visit http://localhost:8000
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## 🐳 Docker Deployment
|
||||||
|
|
||||||
|
### Using Docker Compose (Recommended)
|
||||||
|
|
||||||
|
The easiest way to run AI-Trader is with Docker Compose:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# 1. Clone and setup
|
||||||
|
git clone https://github.com/HKUDS/AI-Trader.git
|
||||||
|
cd AI-Trader
|
||||||
|
|
||||||
|
# 2. Configure environment
|
||||||
|
cp .env.example .env
|
||||||
|
# Edit .env with your API keys:
|
||||||
|
# - OPENAI_API_KEY
|
||||||
|
# - ALPHAADVANTAGE_API_KEY
|
||||||
|
# - JINA_API_KEY
|
||||||
|
|
||||||
|
# 3. Run with Docker Compose
|
||||||
|
docker-compose up
|
||||||
|
```
|
||||||
|
|
||||||
|
The container automatically:
|
||||||
|
- Fetches latest NASDAQ 100 price data
|
||||||
|
- Starts all MCP services
|
||||||
|
- Runs AI trading agents
|
||||||
|
|
||||||
|
### Using Pre-built Images
|
||||||
|
|
||||||
|
Pull and run pre-built images from GitHub Container Registry:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Pull latest version
|
||||||
|
docker pull ghcr.io/hkuds/ai-trader:latest
|
||||||
|
|
||||||
|
# Run container
|
||||||
|
docker run --env-file .env \
|
||||||
|
-v $(pwd)/data:/app/data \
|
||||||
|
-v $(pwd)/logs:/app/logs \
|
||||||
|
ghcr.io/hkuds/ai-trader:latest
|
||||||
|
```
|
||||||
|
|
||||||
|
**📖 See [docs/DOCKER.md](docs/DOCKER.md) for detailed Docker usage, troubleshooting, and advanced configuration.**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## 📈 Performance Analysis
|
## 📈 Performance Analysis
|
||||||
|
|
||||||
### 🏆 Competition Rules
|
### 🏆 Competition Rules
|
||||||
|
|||||||
Reference in New Issue
Block a user