Newer
Older
cortex-hub / docker-compose.test-nodes.yml
# 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_SECRET_KEY=aYc2j1lYUUZXkBFFUndnleZI
      - AGENT_AUTH_TOKEN=cortex-secret-shared-key
      - AGENT_TLS_ENABLED=false
    networks:
      - cortex-hub_default
    restart: unless-stopped

  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_SECRET_KEY=aYc2j1lYUUZXkBFFUndnleZI
      - AGENT_AUTH_TOKEN=ysHjZIRXeWo-YYK6EWtBsIgJ4uNBihSnZMtt0BQW3eI
      - AGENT_TLS_ENABLED=false
    networks:
      - cortex-hub_default
    restart: unless-stopped

networks:
  cortex-hub_default:
    external: true