title: docker-compose doesn't mount volumes correct for django container
body: <p>Running Docker on Windows 10 with WSL 2 Ubuntu on it. I have the following <code>Dockerfile</code>:</p>
  <pre><code>FROM ubuntu
  
  #base directory
  ENV HOME /root
  #subdirectory name for the REST project
  ENV PROJECT_NAME django_project
  #subdirectory name of the users app
  ENV APP_NAME users
  
  #set the working directory
  WORKDIR $HOME
  
  #install Python 3, the Django REST framework and the Cassandra Python driver
  RUN apt-get update
  RUN apt -y install python3-pip 2&gt; /dev/null
  RUN pip3 install djangorestframework
  RUN pip3 install cassandra-driver
  
  #initialize the project (blank project) and creates a folder called $PROJECT_NAME
  #with manager.py on its root directory
  RUN django-admin startproject $PROJECT_NAME .
  #install an app in the project and create a folder named after it
  RUN python3 manage.py startapp $APP_NAME
  
  ENV CASSANDRA_SEEDS cas1
  
  ENTRYPOINT [&quot;python3&quot;,&quot;manage.py&quot;, &quot;runserver&quot;, &quot;0.0.0.0:8000&quot;]
  </code></pre>
  <p>I build a image with <code>docker build -t django-img .</code> and then I have the following <code>.yaml</code>:</p>
  <pre><code>version: '3'
  services:
    django_c:
      container_name: django_c
      image: django-img
      environment:
        - CASSANDRA_SEEDS='cas1'
      ports:
        - '8000:8000'
      volumes:
        - /mnt/c/Users/claud/docker-env/django/django_project:/django_project
  </code></pre>
  <p>When I run <code>docker-compose up -d</code> inside <strong>django-project</strong> folder (.yml and Dockerfile are there), I get the container running, but I can't see in the host any file from the container. If I run <code>ls</code> in the container, however, I see all files are there:</p>
  <p><a href="https://i.stack.imgur.com/9snB8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9snB8.png" alt="enter image description here" /></a></p>
  <p><strong>How am I supposed to edit the container files using an editor in my host?</strong></p>
  <p>p.s.: I've already tested the volume slashes (&quot;/&quot;) with another container and they work fine since I'm using WSL.</p>
  <p><strong>ADDITION</strong>
  Here the content of my container folders using relative paths, I tried</p>
  <pre><code>volumes:
        - /mnt/c/Users/claud/docker-env/django/django_project:/root/django_project
  </code></pre>
  <p>but it still did not show the files in the host.
  <a href="https://i.stack.imgur.com/fc4qm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fc4qm.png" alt="enter image description here" /></a></p>