services:
  agents:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: optovia-agents
    restart: unless-stopped
    ports:
      - "8000:8000"
    environment:
      # Gemini LLM
      - GOOGLE_API_KEY=AIzaSyBXcBwZmAD5GEGRPPKBj7Y1tGfuuDolhhg
      # GraphQL endpoints for MCP server
      - GEO_GRAPHQL_URL=http://optoviaproject-geo-ilqirf:8000/graphql/public/
      - ORDERS_GRAPHQL_URL=http://optoviaproject-orders-d7lvhs:8000/graphql/team/
      - EXCHANGE_GRAPHQL_URL=http://optoviaproject-exchange-pdytpt:8000/graphql/public/
      # PDF storage
      - PDF_STORAGE_PATH=/data/egrul-pdfs
    volumes:
      - egrul-pdfs:/data/egrul-pdfs
    networks:
      dokploy-network:
        aliases:
          - optovia-agents
          - logistics-agent
          - egrul-agent

volumes:
  egrul-pdfs:

networks:
  dokploy-network:
