Agnostic volume mapping in Docker Compose yaml
13:59 18 Feb 2026

I have:

services:
  httpd:
    volumes:
      - "C:\\path\\to\\repo:/path/to/code"

How do I make the source path agnostic so my colleague using a Mac can simply docker compose the yaml file?

docker-compose yaml docker-volume