version: '3.8' services: # PostgreSQL for ACID-compliant backtesting metadata and trade storage postgres: image: postgres:15-alpine container_name: foxhunt-postgres environment: POSTGRES_DB: foxhunt POSTGRES_USER: foxhunt POSTGRES_PASSWORD: foxhunt_dev_password ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data - ./init-db.sql:/docker-entrypoint-initdb.d/init-db.sql healthcheck: test: ["CMD-SHELL", "pg_isready -U foxhunt"] interval: 10s timeout: 5s retries: 5 networks: - foxhunt-network # InfluxDB for high-frequency time-series backtesting performance data influxdb: image: influxdb:2.7-alpine container_name: foxhunt-influxdb environment: INFLUXDB_DB: foxhunt INFLUXDB_ADMIN_USER: admin INFLUXDB_ADMIN_PASSWORD: admin_password INFLUXDB_USER: foxhunt INFLUXDB_USER_PASSWORD: foxhunt_password ports: - "8086:8086" volumes: - influxdb_data:/var/lib/influxdb2 healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8086/health"] interval: 10s timeout: 5s retries: 5 networks: - foxhunt-network # Redis for caching and real-time data redis: image: redis:7-alpine container_name: foxhunt-redis ports: - "6379:6379" volumes: - redis_data:/data healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 10s timeout: 5s retries: 5 networks: - foxhunt-network volumes: postgres_data: influxdb_data: redis_data: networks: foxhunt-network: driver: bridge