After reading the docker docs on volumes and how to use them in docker-compose, I believed this minimal example would work to mount a local directory as a volume: