# docker-compose.test-nodes.yml
# Internal testing setup for multiple Agent Nodes (e.g. Test Node 1, Test Node 2).
# This is NOT meant for end-user deployment.
services:
  test-node-1:
    build:
      context: ./agent-node
    container_name: cortex-test-1
    environment:
      - AGENT_NODE_ID=test-node-1
      - AGENT_NODE_DESC=Primary Test Node
      - GRPC_ENDPOINT=ai_hub_service:50051
      - AGENT_HUB_URL=http://ai_hub_service:8000
      - AGENT_SECRET_KEY=aYc2j1lYUUZXkBFFUndnleZI
      - AGENT_AUTH_TOKEN=cortex-secret-shared-key
      - AGENT_TLS_ENABLED=false
      - DEBUG_GRPC=true
    restart: always
    cap_add:
      - NET_ADMIN
    privileged: true
    volumes:
      - ./skills:/app/node_skills:ro
    deploy:
      resources:
        limits:
          memory: 512M

  test-node-2:
    build:
      context: ./agent-node
    container_name: cortex-test-2
    environment:
      - AGENT_NODE_ID=test-node-2
      - AGENT_NODE_DESC=Secondary Test Node
      - GRPC_ENDPOINT=ai_hub_service:50051
      - AGENT_HUB_URL=http://ai_hub_service:8000
      - AGENT_SECRET_KEY=aYc2j1lYUUZXkBFFUndnleZI
      - AGENT_AUTH_TOKEN=ysHjZIRXeWo-YYK6EWtBsIgJ4uNBihSnZMtt0BQW3eI
      - AGENT_TLS_ENABLED=false
      - DEBUG_GRPC=true
    restart: always
    cap_add:
      - NET_ADMIN
    privileged: true
    volumes:
      - ./skills:/app/node_skills:ro
    deploy:
      resources:
        limits:
          memory: 512M
