Docker compose volume syntax valid for Windows and Linux
Yes.  Just use ./ for you current directory that the Docker-compose file is in.  Docker-Compose does not allow you to use a context that is located above the compose file, so everything the compose file will use is below the folder with the .yml.  Your "working directory" for the compose file is just "./".  If you are trying to set a directory below that it would look something like: volumes:
  - ./DirectoryIWantToTarget:/tmp

There's an example of this in the Docker-Compose documentation here.  This approach makes the solution cross-platform as well.