# Foxhunt Docker Infrastructure ## Overview Simplified Docker setup for the Foxhunt monolithic HFT trading system. Only databases and monitoring run in Docker - the main application runs on the host for maximum performance. ## Services ### Core Infrastructure (Docker) - **PostgreSQL**: Main database for trades, orders, positions - **Redis**: Cache and pub/sub for real-time data - **InfluxDB**: Time-series database for market data - **Prometheus**: Metrics collection and monitoring ### Application (Host) The Foxhunt monolithic application runs directly on the host machine for: - Sub-50μs latency requirements - Direct hardware access (RDTSC timing, SIMD) - GPU acceleration for ML models - Zero container overhead ## Quick Start 1. **Setup environment**: ```bash cp .env.example .env # Edit .env with your passwords ``` 2. **Start infrastructure**: ```bash docker-compose up -d ``` 3. **Run the application**: ```bash # From project root cargo run --release ``` ## Connection URLs When running on the same host: - PostgreSQL: `localhost:5432` - Redis: `localhost:6379` - InfluxDB: `http://localhost:8086` - Prometheus: `http://localhost:9090` ## Architecture Changes **Before (Microservices)**: - 6 service containers (trading-engine, risk-management, etc.) - Consul for service discovery - Jaeger for distributed tracing - Complex orchestration **After (Monolithic)**: - Single high-performance application on host - Only databases in Docker - Direct connections, no service mesh - 80% reduction in Docker complexity