title: Mounted a local direcotry in my Docker image, but it can't read a file from that directory
body: <p>I'm trying to build a docker container with MySql, Django, and Apache images.  I have set up this docker-compose.yml ...</p>
  
  <pre><code>version: '3'
  
  services:
    mysql:
      restart: always
      image: mysql:5.7
      environment:
        MYSQL_DATABASE: 'maps_data'
        # So you don't have to use root, but you can if you like
        MYSQL_USER: 'chicommons'
        # You can use whatever password you like
        MYSQL_PASSWORD: 'password'
        # Password for root access
        MYSQL_ROOT_PASSWORD: 'password'
      ports:
        - "3406:3306"
      volumes:
        - my-db:/var/lib/mysql
      command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
  
    web:
      restart: always
      build: ./web
      ports:           # to access the container from outside
        - "8000:8000"
      env_file: .env
      environment:
        DEBUG: 'true'
      command: /usr/local/bin/gunicorn maps.wsgi:application --reload -w 2 -b :8000
      volumes:
      - ./web/:/app
      depends_on:
        - mysql
  
    apache:
      restart: always
      build: ./apache/
      ports:
        - "9090:80"
      links:
        - web:web
  
  volumes:
    my-db:
  </code></pre>
  
  <p>I would like to mount my docker Django image to a directory on my local machine so that local edits can be reflected in the docker container, which is why I have this</p>
  
  <pre><code>volumes:
  - ./web/:/app
  </code></pre>
  
  <p>in my "web" portion.  This is the web/Dockerfile I'm using ...</p>
  
  <pre><code>FROM python:3.7-slim
  
  RUN apt-get update &amp;&amp; apt-get install
  
  RUN apt-get install -y libmariadb-dev-compat libmariadb-dev
  RUN apt-get update \
      &amp;&amp; apt-get install -y --no-install-recommends gcc \
      &amp;&amp; rm -rf /var/lib/apt/lists/*
  
  RUN python -m pip install --upgrade pip
  
  WORKDIR /app/
  
  COPY requirements.txt requirements.txt
  RUN python -m pip install -r requirements.txt
  
  RUN ["chmod", "+x", "/app/entrypoint.sh"]
  
  ENTRYPOINT ["/app/entrypoint.sh"]
  </code></pre>
  
  <p>However, when I run things using "docker-compose up,", I get this error ...</p>
  
  <pre><code>chmod: cannot access '/app/entrypoint.sh': No such file or directory
  </code></pre>
  
  <p>Even though when I look in my local directory, I can see the file ...</p>
  
  <pre><code>localhost:maps davea$ ls -al web/entrypoint.sh 
  -rw-r--r-- 1 davea staff 99 Mar  9 15:23 web/entrypoint.sh
  </code></pre>
  
  <p>I sense I haven't mapped/mounted things properly, but not sure where the issue is.</p>