How to mount special folders in docker-compose.yml

I’m running docker for windows and I need to mount the user home directory for a container within a docker-compose file. Is it possible to do something like the following?


It works fine with an absolute path but I don’t seem to be able to get it to work with an environment variable.

  • How to configure freeSWITCH for a docker container inside boot2docker?
  • Getting a “can't stat” error on build when trying to build a docker container within a Jenkins pipeline, but why?
  • How do i deploy from GitLab CI to Google Container Engine instance using Docker?
  • Docker interrupt proxy internet connection
  • How to update docker in aws ec2
  • When will Docker be launched? [closed]
  • doing a docker build for the first time and ran into this massive error
  • Kubernetes on CoreOS: Proxy service max out CPU
  • How to print container id from Docker Compose
  • jax-rs client is not creating jax-rs cookie
  • Docker - how to mount folder inside running container as volume to other running container? [closed]
  • Why would a service that works locally be getting kill signals frequently in docker?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.