services: build: build: context: . dockerfile: docker/Dockerfile working_dir: /project environment: - IDF_TARGET=esp32c6 volumes: # Project source, bind-mounted. - .:/project # Build output and IDF Component Registry cache, kept in named # volumes so they survive across container runs without polluting # the bind-mounted source tree. - build-cache:/project/build - managed-components-cache:/project/managed_components tty: true # USB access (for `idf.py flash`/`monitor`) is expected to be handled # via usbipd-win forwarding the board's serial port into WSL2. If # flashing needs to run inside this container rather than on the WSL2 # host, uncomment and adjust once the forwarded device node is known: # devices: # - "/dev/ttyUSB0:/dev/ttyUSB0" volumes: build-cache: managed-components-cache: