I like to mount a specific directory on my host machine an two containers. Everything is defined in a docker-compose.yaml file.
In the services section of the yaml file, for both containers, the following is specified:
volumes:
- myvolume:/internal/path
In the volume section, the volume is defined as:
volumes:
myvolume:
driver: local
The shared volume is located in /var/libs/docker/volumes as a single file by default. Now, I want to specify a directory in the host's file system, let's say directory /host/directory. Can somebody please state how to realize that by means of docker-compose?