I have a folder called 'Transfer'. During the execution of my program, new folders with files can be created in the 'Transfer' folder.
How do I dynamically transfer all new created file folders in Docker to my PC?
I tried to do something like this, but it doesn't work:
In the docker-compose.yml file for my transfer service, I added a volume called files:
    transfer:
        build: ./transfer
        ports:
            - 6666:6666
        volumes:
            - ./:/files
./ is a folder on the host, it is next to docker-compose.yml, new folders with files from my Docker volume called files should appear here
/files - volume in Docker
At the end of docker-compose.yml I created this volume files:
volumes:
  files:
 
    