Good afternoon, I just can not figure out the docker, he looks at the wrong folder.

webserver: volumes: - .:/app 

With this setting, he looks at the path

C: \ Users \ admin \ Documents \ GitHub

and should on

C: \ Users \ admin \ Documents \ GitHub \ test

    1 answer 1

    you pass the current directory path with a dot ( . ). if you are in ... \ Github \, then he will look there. Correct either to ./test:/app or climb to test and run from there

    • one
      The dot does not indicate the current directory, but the directory with docker-compose.yml, this behavior has become so in some ancient version of compose, so the transition will not give anything. - etki
    • I generally wanted to write about it, but it became wildly lazy, I thought the author himself would understand when he rushed, but thanks for the addition - strangeqargo