# agent-node/docker-compose.yml
# This is a template for deploying a single Agent Node.
# Usage:
#   docker-compose up -d
services:
  agent-node:
    build: .
    container_name: cortex-agent
    environment:
      - AGENT_NODE_ID=${AGENT_NODE_ID:-agent-node-001}
      - AGENT_NODE_DESC=${AGENT_NODE_DESC:-Modular Stateful Node}
      - GRPC_ENDPOINT=${GRPC_ENDPOINT:-127.0.0.1:50051}
      - AGENT_AUTH_TOKEN=${AGENT_AUTH_TOKEN}
      - AGENT_SECRET_KEY=${AGENT_SECRET_KEY}
      - AGENT_TLS_ENABLED=${AGENT_TLS_ENABLED:-true}
      - CORTEX_SYNC_DIR=/app/sync
    volumes:
      - ./sync:/app/sync
    restart: always
