name: onec-agent

services:
  onec-agent:
    build:
      context: ../../../../
      dockerfile: plugins/1c/agent/Dockerfile
    image: ${ONEC_AGENT_IMAGE:-onec-agent:latest}
    container_name: ${ONEC_AGENT_CONTAINER_NAME:-onec-agent}
    restart: unless-stopped
    ports:
      - "${ONEC_AGENT_HOST_PORT:-8090}:8090"
    volumes:
      - onec-agent-data:/app/data
    environment:
      ONEC_AGENT_HOST: 0.0.0.0
      ONEC_AGENT_PORT: 8090
      ONEC_AGENT_DB_PATH: /app/data/onec-agent.db
      ONEC_AGENT_DEFAULT_BASE_URL: ${ONEC_AGENT_DEFAULT_BASE_URL:-http://docker-gpu.cin.su:8000}
      ONEC_AGENT_DEFAULT_MODEL: ${ONEC_AGENT_DEFAULT_MODEL:-qwen3-4b-instruct-2507}
      ONEC_MCP_URL: ${ONEC_MCP_URL:-http://docker.cin.su:8021}
      ONEC_AGENT_ALLOW_DIAGNOSTIC: ${ONEC_AGENT_ALLOW_DIAGNOSTIC:-false}
      ONEC_AGENT_PROVIDERS: ${ONEC_AGENT_PROVIDERS:-}

volumes:
  onec-agent-data:
