name: nomadcode-core

services:
  nomadcode-core:
    build: .
    environment:
      APP_ENV: dev
      HTTP_ADDR: :8080
      DATABASE_URL: ${DATABASE_URL:-postgres://nomadcode:nomadcode@code-server-postgres:5432/nomad-core-dev?sslmode=disable}
      REDIS_URL: ${DEV_REDIS_URL:-redis://code-server-redis:6379/4}
      REDIS_KEY_PREFIX: ${DEV_REDIS_KEY_PREFIX:-nomadcode-core:dev}
      AUTH_USERNAME: ${AUTH_USERNAME:-nomadcode}
      AUTH_PASSWORD: ${AUTH_PASSWORD:-}
      MODEL_BASE_URL: ${MODEL_BASE_URL:-http://192.168.0.91:11434}
      MODEL_API_KEY: ${MODEL_API_KEY:-ollama}
      MODEL_NAME: ${MODEL_NAME:-qwen3.6:35b-a3b-bf16}
      MODEL_CONTEXT_SIZE: ${MODEL_CONTEXT_SIZE:-262144}
      MODEL_TIMEOUT_SEC: ${MODEL_TIMEOUT_SEC:-300}
      A2A_EDGE_URL: ${A2A_EDGE_URL:-}
      A2A_AGENT_URL: ${A2A_AGENT_URL:-}
      A2A_TOKEN: ${A2A_TOKEN:-}
      A2A_TIMEOUT_SEC: ${A2A_TIMEOUT_SEC:-300}
      MATTERMOST_BASE_URL: ""
      MATTERMOST_TOKEN: ""
      PLANE_BASE_URL: ${PLANE_BASE_URL:-}
      PLANE_TOKEN: ${PLANE_TOKEN:-}
    ports:
      - "8080:8080"
    networks:
      - net_nginx

networks:
  net_nginx:
    external: true
