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.