File size: 1,809 Bytes
6cd35fc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
version: '3.8'
services:
# Development environment with hot reload
trading-dev:
build: .
container_name: trading-dev
ports:
- "8888:8888" # Jupyter Lab
- "8000:8000" # Trading system
- "6006:6006" # TensorBoard
volumes:
- .:/app
- ./data:/app/data
- ./logs:/app/logs
- ./models:/app/models
- ./config.yaml:/app/config.yaml:ro
environment:
- PYTHONPATH=/app
- LOG_LEVEL=DEBUG
- PYTHONDONTWRITEBYTECODE=1
command: ["jupyter", "lab", "--ip=0.0.0.0", "--port=8888", "--no-browser", "--allow-root", "--NotebookApp.token=''"]
restart: unless-stopped
stdin_open: true
tty: true
# FinRL training with TensorBoard
finrl-training-dev:
build: .
container_name: finrl-training-dev
ports:
- "6006:6006" # TensorBoard
volumes:
- .:/app
- ./data:/app/data
- ./logs:/app/logs
- ./models:/app/models
- ./config.yaml:/app/config.yaml:ro
environment:
- PYTHONPATH=/app
- LOG_LEVEL=DEBUG
command: ["python", "finrl_demo.py"]
restart: "no"
# Testing service
testing:
build: .
container_name: trading-testing
volumes:
- .:/app
- ./data:/app/data
- ./logs:/app/logs
environment:
- PYTHONPATH=/app
- LOG_LEVEL=DEBUG
command: ["pytest", "-v", "--cov=agentic_ai_system", "--cov-report=html"]
restart: "no"
# Linting and code quality
linting:
build: .
container_name: trading-lint
volumes:
- .:/app
environment:
- PYTHONPATH=/app
command: ["sh", "-c", "pip install flake8 black isort mypy && flake8 agentic_ai_system && black --check agentic_ai_system && isort --check-only agentic_ai_system"]
restart: "no"
volumes:
data:
logs:
models: |