# Development overrides - use with: docker compose -f docker-compose.yml -f docker-compose.dev.yml up
services:
  backend:
    build:
      context: ./backend
      target: dev
    volumes:
      - ./backend:/app        # Hot-reload: mount source
      - jinkendo-data:/app/data
      - jinkendo-photos:/app/photos
    environment:
      - DATABASE_URL=          # Empty = use SQLite fallback
      - DATA_DIR=/app/data
      - ENVIRONMENT=development
    command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload

  frontend:
    build:
      context: ./frontend
      target: dev
    volumes:
      - ./frontend/src:/app/src  # Hot-reload
    ports:
      - "3002:5173"
    command: npm run dev -- --host

volumes:
  jinkendo-data:
  jinkendo-photos:
