services: docs-analytics: build: . image: docs-analytics-reviewer # loads DASHBOARD_URL, GEMINI_API_KEY and friends from .env when it exists env_file: - path: .env required: false environment: OLLAMA_HOST: ${OLLAMA_HOST:-http://host.docker.internal:11434} # lets the container reach an ollama running on the host needed on linux extra_hosts: - "host.docker.internal:host-gateway" volumes: - ./out:/app/out # override at runtime e.g. docker compose run --rm docs-analytics extract -f json command: ["help"]