# Apollo MCP Server — default (QA) compose.
#   docker compose up --build
# Runs the bundled QA config (config/mcp.qa.yaml, the image's default) on :8080,
# fronting the remote qa-mcp contract variant. Needs .env with APOLLO_KEY +
# APOLLO_GRAPH_REF — see .env.template.
services:
  apollo-mcp:
    build:
      context: .
      target: deploy
      args:
        - VERSION=local-dev
    ports:
      - "8080:8080"
    environment:
      # Listen port — read by config/mcp.qa.yaml (transport.port: ${env.MCP_PORT}).
      # Matches MCP_PORT in the Fargate task def (terraform-infra/qa/apollo-mcp).
      MCP_PORT: "8080"
    env_file:
      - .env
