We have developers working on an app using both Windows and Linux. The application is built within a Docker container, and ships a docker-compose specification for the build environment.
The local directory is mounted as a volume:
volumes:
- ${PWD}:/tmp
however this doesn't work in Windows because $PWD is not defined.
My question is:
Can we have a single docker-compose.yml to satisfy both the Windows and Linux developers?
The obvious way to do this seems to me to have two docker-compose files, one for each OS.

${PWD}wasn't working for them Unfortunately, I have no way of verifying this, not having access to a Windows machine. But certainly it looks like it should work (I'm using Powershell 6.2.2 on Linux) – Bruce Becker Aug 26 '19 at 18:00