# Development override for Docker Compose
# Use: docker-compose -f docker-compose.yml -f docker-compose.dev.yml up

version: '3.8'

services:  # Development overrides for faster feedback
  dragonfly:
    command: >
      dragonfly
      --logtostderr
      --maxmemory=512mb
      --save_schedule=""
      --bind=0.0.0.0
    ports:
      - "6379:6379"

  postgres:
    environment:
      POSTGRES_DB: trading_bot_dev
      POSTGRES_USER: dev_user
      POSTGRES_PASSWORD: dev_pass
    ports:
      - "5432:5432"

  # Disable monitoring in development to save resources
  prometheus:
    profiles:
      - monitoring

  grafana:
    profiles:
      - monitoring
