version: "3.8" services: code-intel: build: context: ../.. dockerfile: docker/code-intel/Dockerfile ports: - "${ATTOCODE_PORT:-8080}:8080" environment: - ATTOCODE_PROJECT_DIR=/project # The port is open to other computers, so the API needs a key. - ATTOCODE_API_KEY=${ATTOCODE_API_KEY:?Set ATTOCODE_API_KEY first} - ATTOCODE_HOST=0.0.0.0 - ATTOCODE_PORT=8080 restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8080/health"] interval: 30s timeout: 5s retries: 3 volumes: # Mount a local project to analyze (read-only) - ${PROJECT_DIR:-.}:/project:ro # Preserve the existing knowledge/cache volume and add writable AST storage. - code-intel-cache:/project/.attocode/cache - code-intel-index:/project/.attocode/index volumes: code-intel-cache: code-intel-index: